Android: back button in a dialog
I'm opening a dialog window on startup of my application. When the user clicks on ok, this will load the main tabGroup. However, if the user uses the back button it will close the dialog.
Is there any way that I can detect that the user closed the dialog box ? It seems that the "click" event is not fired in this case.
1 Answer
-
Hi Etienne
Yes, you can configure the android back button by using:
win.addEventListener('android:back', function(e) { Ti.API.Info("Pressing Back Will Not Close The Activity/Window"); });