Page 1 of 1

how to change the back button built in event in andoird?

Posted: Wed Jul 18, 2012 12:42 am
by adi

I'm using samsung S2 to test my tiggzi app.
when clicking on the built in back button (bottom right) i get aways to prev screen. but when at the first screen i want to bind an event that will prompt the user if he wants to leave the app.
how can i do it?

thanks
Adi


how to change the back button built in event in andoird?

Posted: Wed Jul 18, 2012 12:53 am
by maxkatz

PhoneGap has 'backbutton' event: http://help.tiggzi.com/documentation/...


how to change the back button built in event in andoird?

Posted: Wed Jul 18, 2012 3:03 pm
by adi

OK, that's pretty much the events i already know - but which command will exit the app gracefully? probably a javascript line windows.close or something like that?


how to change the back button built in event in andoird?

Posted: Wed Jul 18, 2012 3:41 pm
by maxkatz

Try navigator.device.exitApp()

https://www.google.com/webhp?hl=en&ta...

I'm not sure you can close an app in Android (without doing it via task manager) it always goes into background and handled by the OS.