Closing underlaying window

You must Login before you can answer or comment on any questions.

Hi,I am using Titanium 1.7,Andriod 2.3 In my app I am opening several other windows on current window.But when i am using devices' back button all the pages are underlaying and not being closed. I used the 'exitOnClose:true' property on the launch page. Please suggest some way to close the window when i navigate to another window.

1 Answer

Accepted Answer

There is a nice event, on application exit so you could close all windows there...

// trap app shutdown event
Titanium.App.addEventListener('close',function(e)
{
   win1.close();
   win2.close();
   win3.close();
   etc...   
});
Good luck!

Your Answer

Think you can help? Login to answer this question!