Any way to handle device's "Back" button ?

Hello
Palyingwith my test app I've notcied that quite usually I'm trying to use device's Back button to returns to previous screen or similar operations. But right now pressing it kicks me out of the app. So I'm wondering - is there any way how I cvan add my custom handling for Back button event?

I use director class and when I hit my back button I just
code director change scene and type where you want to go
for example if you want to go to main menu then when
you hit back director will take you to main menu.

I explained this assuming you use director class but if
im incorrect then look into Director Class is a great way
to change scenes.

Hello kurosaki88
No, I'm not using director class - maybe I in the future :) But I'm really interested in how to handle these device buttons events - is there any way to add my custom handler there (imaging that I need something different from changing scenes etc...)?

Anyone?

Hi,

Right now, I do not think there is back button support on Android. Yes, it is an important issue...push for it in the feature request/show stopper section of the forum :)

views:1484 update:2011/10/5 21:23:48
corona forums © 2003-2011