GAYET Thierry wrote:
> First thanks for your quick reply. I have well found the code you told
> me about (OnBootReceiver).
> 
> I have one more question 'cos i as i have said before i ma programming a
> service that i want to start when Android boot.
> 
> My core class extends Service not  BroadcastReceiver. So may i extend
> more than one time. I mean to extends Service and BroadcastReceiver. for
> the same class ?
> 
> Maybe i need to add a public class OnBootReceiver extends
> BroadcastReceiver inside my service project ? But if so how to link this
> second class with the service one ?

BOOT_COMPLETED must be received by a <receiver> element for a
BroadcatReceiver. You have no choice in the matter.

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

Android Development Wiki: http://wiki.andmob.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to