Hi Thanks for the suggestion. I will do that indeed, start a separate thread, makes much more sense.
On Jul 13, 10:08 am, gjs <garyjamessi...@gmail.com> wrote: > Hi, > > I'd suggest you do find the culprit not just hide it away. Having > found it, consider what parts can be made to work asynchronously with > Threads or Async tasks. 5 second startup is close to getting ANR > warning message. Usual recommendation is don't do to much processing > (more than a second of so) on the UI thread. > > Regards > > On Jul 12, 8:07 pm, Thomas Lefort <lefortho...@gmail.com> wrote: > > > > > > > > > Hi, > > > I made a little compass application for fun. This app uses a number of > > sensors for orientation, magnetic field measurement and location. It > > also includes a map. Point is it takes 5s or more to get started. I am > > not 100% sure who the culprit is although I suspect the map init to > > take some time. > > > The bottom line is the user experiences a 5s or more black screen with > > no feedback whatsoever. > > I was wondering if any of you knew of a clever way of showing a > > message at startup? I tried the progress dialog but it didn't work. > > Ideally some kind of splash screen would be great. > > > Thanks for any pointers/help. > > > BTW, I actually put the whole thing open source @ code.google.com/p/ > > compastic/ if anyone is interested. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en