I just can't force this to work.
It work on my first opened window.
But all of my windows have navbarhidden : true which makes them heavyweight.
I just want to exit app when I press back button in any of opened windows.
1 Answer
In your first window, or wherever you create your main window or tabgroup, just listen for the app event for the back button and then close that main window.
Ti.App.addEventListener('android:back', function() { win.close(); });On a side note, this breaks the whole point of the Android back button, and just personally speaking, I'd more than likely be really upset if I ran into this scenario out in the wild.
Your Answer
Think you can help? Login to answer this question!