I want to run some init code immediately after my activity becomes visible to the user, so that the main view can come up as soon as possible and then the data can get filled in afterward. So all I want to do is schedule something to run on the UI thread immediately after the activity is actually made visible.
Of course I can send a message to a Handler with a long enough delay to wait out the activity creation code, but I don't want a delay, I want it to run asap. If I make a reasonably small delay then it still ends up being run before the activity creation code is done and blocking the display of the activity until it's done. I tried running it from onPostResume() but same problem. This is such a common use case I have to believe it's doable--does anyone know how? Thanks. -- Peter --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

