Titanium Community Questions & Answer Archive

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

[Android] Background root window

I'm having a little issue with my program. I'm writing a simple android app that spawns a new windows in the app.js which acts as my root window for the application. When i click the back button, I get taken back to the splash screen.

I've noted that the api documentation mentioned that if you wanted to set a custom root window you apply the exitOnClose property, however i also need my application to continue running in the bg. So I'm currently stuck with a choice - have the application return to the global root (splash screen) when I click back and have backgrounding, or else set my main window as root and lose backgrounding.

Is there any better solution?

Also is there any way i can make the splash screen fullscreen? At the moment it's showing both chrome and the statusbar and I cant seem to get rid of them.

— asked September 2nd 2010 by Alex Borisov
  • android
  • background
  • mobile
  • root
  • splashscreen
  • window
0 Comments

3 Answers

  • Accepted Answer

    I ran into the same trouble. John V provided an answer in my Q&A that worked for me. Check it out

    — answered September 8th 2010 by Tim Poulsen
    permalink
    0 Comments
  • Actually looking around it seems that the back button on android typically closes the app whereas the middle button takes you back to homescreen. Not all apps seem to honour this though (which is why i got confused).

    — answered September 2nd 2010 by Alex Borisov
    permalink
    0 Comments
  • I ran into the same trouble. John V provided an answer in my Q&A that worked for me. Check it out

    — answered September 8th 2010 by Tim Poulsen
    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.