D.Garcia wrote: > Hi, > I don't know if I'm trying to do something that is wrong: > > I want a separate thread from a service to register a receiver for wifi > events. However as I need a context for doing that (and I'm using > service one) > I'm receiving the intents on the main thread. > Is there any possibility to register a receiver for executing in other > thread than main?
No, but you can then have the receiver start an AsyncTask, add an event to a LinkedBlockingQueue, or otherwise pass responsibility off to a background thread, then return. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now 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 -~----------~----~----~----~------~----~------~--~---

