Titanium Community Questions & Answer Archive

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

Back Button (Android) not work in Tab

In my App, there are 2 tabs, in which the second tab have 3 windows. When I am at the second window, I press the back button to return to first window, but then it exit the program.

What can I do to make the back button work in order to return to the first window?

— asked September 1st 2010 by Sreyleap Lay
  • android
  • back_button
  • tab
  • window
0 Comments

1 Answer

  • It sounds as if you have exitOnClose property set when creating your first window. You want to make sure this is set to false when creating your initial window.

    You can also catch the backbutton on the first window to stop it exiting.

    win.addEventListener('android:back', function(e){
    //Ti.API.info('Do not allow back button');
    });
    
    — answered December 31st 2011 by Ben Bahrenburg
    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.