Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

The application quit not programatically bug looks not fixed yet.

I create a window at app.js use following codes.

var win=null;
win = Titanium.UI.createWindow({
    url:'win/homeWindow.js',
    backgroundColor:'#000000',
    navBarHidden:true,
    fullscreen:true
});
win.orientationModes = [Titanium.UI.LANDSCAPE_LEFT];
win.open();

When I press "back" button on phone,the app will not quit but leave a splash image.I check the Q&A find a post : Android: How to quit the whole application programatically?.It said the Ticket 777 will be fixed in 1.3.0 release.But I'm using 1.3.0 it still there.

Will Ti leave it to 1.4?And other more bugs.I submit too many question today.

— asked May 18th 2010 by Semon Xue
  • 1.3
  • bug
0 Comments

1 Answer

  • Semon

    I am not sure I understand what version of Titanium you are running. Titanium 1.3 is no longer supported. Make sure you are running the latest version, 1.6.2 or 1.7.X for example. See Titanium Compatibility Matrix for more information about this.

    On Android (only), in order to ensure your app closes when you click the back button, add the exitOnClose property to your Window, as follows:

    var win=null;
    win = Titanium.UI.createWindow({
        url:'win/homeWindow.js',
        backgroundColor:'#000000',
        exitOnClose:true,
        navBarHidden:true,
        fullscreen:true
    });
    win.orientationModes = [Titanium.UI.LANDSCAPE_LEFT];
    win.open();
    
    — answered June 3rd 2011 by Paul Dowsett
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.