According to the documentation the onReceive function does not sound like it has too run on the UI thread:
"The function is normally called within the main thread of its process, so you should never perform long-running operations in it..." from http://developer.android.com/reference/android/content/BroadcastReceiver.html#onReceive(android.content.Context,%20android.content.Intent) On Jun 10, 5:47 pm, Mark Murphy <[email protected]> wrote: > Andreas Agvard wrote: > > Are we guaranteed that Application.onCreate() runs in the UI/main > > thread? > > Yes. > > > When I receive a broadcast I want to post a message onto the UI/main > > thread. > > You are on the UI/main thread already. Pretty much all callbacks from > Android to your code will be on the UI/main thread. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 3.1 > Available! -- 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

