Closing application on Android
I have an app that works fine on the iPhone, but using Android's default tabgroup and navbar was just too ugly!
So I dumped the tabgroup in favour of a couple of extra buttons on the homescreen and open every window fullscreen, navbar hidden and then create my own navbar image.
The problem is using the back button to go back through the windows does not exit the app from the homescreen, it brings up a blank page.
Does anyone know how to reference this page and close it?
Many thanks
Des
From app.js :-
var win1 = Titanium.UI.createWindow({
url:'home.js',
fullscreen:true,
navBarHidden:true,
backgroundColor:'#fff'
});
2 Answers
-
Accepted Answer
Set the property 'exitOnClose' to true for the window you want to be the last in the stack and it'll close the app when the user hits the back button when that window is active.
-
Many thanks for the quick reply, it worked perfectly.
I am begining to regain faith in Titanium for Android ;-)