Howdy, If I make an app like this, everything is peachy for Android:
Titanium.UI.BackgroundColor('#000'); var win = Titanium.UI.createWindow({ backgroundColor:'#ff9900' }); win.open();When I hide the title bar for Android, things get funky when I do this:
Titanium.UI.BackgroundColor('#000'); var win = Titanium.UI.createWindow({ backgroundColor:'#ff9900', navBarHidden:true, fullscreen:false }); win.open();When I hit the back button, a blank window with a title bar is shown and you have to hit the back button again to "minimize" the app. I've tried this with mixed results:
Titanium.UI.BackgroundColor('#000'); var win = Titanium.UI.createWindow({ backgroundColor:'#ff9900', navBarHidden:true, fullscreen:false, exitOnClose:true }); win.open();That's OK for some apps, but I want my app to continue checking GPS on occasion and continue to bring up notifications as needed. exitOnClose would "kill" the app would it not?
Any thoughts on how I can get around the extra back button press while also hiding the title bar?
1 Answer
I would like to see this question answered as well. When I fire the android:back event in the first window in my Android window hierarchy, a blank white window is shown. Hitting back again closes the application.
Thanks, M
Your Answer
Think you can help? Login to answer this question!