Titanium Community Questions & Answer Archive

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

activityindicator in load screen

Helo.

How can i show activityindicator in load screen before load tabgroup in app.js?

I put in tiapp.xml

<activityIndicator>true</activityIndicator>

But don't work

Someone can help me? Thanks

— asked May 3rd 2010 by Pedro Camarelles
  • activityindicator
  • load
  • screen
0 Comments

7 Answers

  • I think this is not supported and will need to be a new feature of titanium.

    — answered May 3rd 2010 by Masood Nasir
    permalink
    0 Comments
  • Hey Pedro,

    Yeah, unfortunately @Masood is right, there is currently no way to show an indicator on the loading screen.

    There was in pre-GA builds of the mobile SDK then for some reason it was removed. Hopefully it will be added again, I'd love to have the option to display it.

    — answered May 3rd 2010 by Dan Giulvezan
    permalink
    0 Comments
  • You could use a temporary window/view with an imageview that uses the same image as the splash screen and an activityIndicator.

    After your app is fully loaded you can hide/remove this window/view.

    — answered May 3rd 2010 by Dan Tamas
    permalink
    0 Comments
  • @Tamas true, but wouldn't that show up after the initial loading screen had closed? Depending on how large one's app is, it could potentially be several seconds before the second image is seen if the user is on a pre-3GS iPhone.

    — answered May 3rd 2010 by Dan Giulvezan
    permalink
    0 Comments
  • Yes it takes several seconds before splash screen goes away on device. I did some user testing and some do become restless looking at the splash screen and start tapping in the hope that it will do something. For now I added small text on the splash image that says "Loading…". Hopefully it will keep app users to be patient ;)

    — answered May 3rd 2010 by Masood Nasir
    permalink
    0 Comments
  • @Dan Giulvezan

    But if he loads first the tempWin, then on the "open" event of this window makes all the stuff that create and loads the app ?

    Would this work ?

    — answered May 3rd 2010 by Dan Tamas
    permalink
    0 Comments
  • @Tamas Hmmmm…possibly. Haven't tried it that way but worth a shot.

    — answered May 3rd 2010 by Dan Giulvezan
    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.