On Thu, Oct 21, 2010 at 3:43 PM, Doug Gordon <[email protected]> wrote:
> Anyone know what's happening here? > > I suspect it's something to do with the timing, where this is occurring > before the main activity has even had a chance to display its screen. These > calls are all being made on the main UI thread, but maybe something hasn't > completed within the o/s under these conditions. > That's basically it, from what I recall. I forget where I saw it now, but if you call startActivity right in onCreate, I think the first activity isn't shown to prevent a flicker effect. Presumably this also means it's resources and other bits are not initialized. Maybe? I would put the stuff you need to do in onCreate in a runOnUiThread() call (perhaps delayed a few milliseconds) and see if that helps. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

