On Tue, Nov 9, 2010 at 8:14 PM, Henrik Lindqvist
<[email protected]> wrote:
> Wow. Quick reply. Thanks.
>
> Ok. So to let the service act on the "broadcast" intents I'll forward
> them in the BroadcastReceiver:
>
> public void onReceive (Context context, Intent intent) {
>  context.startService(intent.setClass(context, MyService.class));
> }
>
> Is that good practice?

There is nothing obviously wrong with it.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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

Reply via email to