adi
Posts: 0
Joined: Tue Jun 26, 2012 8:09 pm

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

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

adi
Posts: 0
Joined: Tue Jun 26, 2012 8:09 pm

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

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

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.

Return to “Issues”