Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (quit)
Viewing all articles
Browse latest Browse all 10

Android: How to quit the whole application programatically?

$
0
0

Is it possible to call something like Titanium.App.quit() and this to actually close the application?

The problem is that I have a window that's created in the app.js with the following parameters

var winHomeScreenOptions = {
    url: 'home_screen.js',
    backgroundColor: '#FFFFFF'
}
 
if (Titanium.Platform.name == 'android') {
    winHomeScreenOptions.navBarHidden = true;
}
Titanium.UI.createWindow(winHomeScreenOptions).open();
and when I press "back" button, I see the "Splash" screen, and have to press "back" again ... If I don't set navBarHidden to true, then I have to hit "back" only once.

Is there a way to quit the app with a code?

Thanks!


Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>