Re : How to catch BOOT_COMPLETED_ACTION from an IntentReceiver

by GAYET Thierry » Wed, 24 Jun 2009 20:38:00 GMT

Sponsored Links
 First thanks for your quick reply. I have well found the code you told me about 

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 ?


Thierry GAYET

De : Mark Murphy <>
Envoy le : Mercredi, 24 Juin 2009, 14h08mn 24s
Objet : [android-developers] Re: How to catch BOOT_COMPLETED_ACTION from an 

You'll see this covered as part of: 

Sample code implementing BroadcastReceivers for BOOT_COMPLETED can be
found at: 

(scroll down, download the "Source Code" from the link, and look for
SysEvents/OnBoot and SysServices/Alarm projects)

Mark Murphy (a Commons Guy)  | 

_The Busy Coder's Guide to *Advanced* Android Development_
Version 0.9 Available!


Re : How to catch BOOT_COMPLETED_ACTION from an IntentReceiver

by Mark Murphy » Wed, 24 Jun 2009 21:03:04 GMT


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

Mark Murphy (a Commons Guy)  | 

Android Development Wiki: 


Sponsored Links

Other Threads

1. Cheap Embedded Android Phone (M2M device?)

Hey all,

I'm playing around with some ideas and was wondering if anyone knew of
an Android-based device that was basically a cell-phone with no

Here's the requirements I'm looking for:
- Support GSM - Single SIM slot or eSIM (3G preferred but not
- Support GPS
- Support BlueTooth
- Optionally have an accelerometer
- No display (this is an embedded device)
- Would be willing to provide my own packaging (raw boards would be
- Priced around $40 - $80

I've debated taking the guts out of old G1s for this project.  But if
there is a specific device that meets my needs all the better.  If
there's any Manufacturers out there that have Android phone "guts"
available, let me know too.



2. (WTI) Panda Home, apk utk home screen yg kerenn..


Sorry kalo ud pernah dibahas. Cuma mau sharing aja aplikasi ini, ada di
market kok. Kalo mau home screen bisa ikutan rotate bisa pake aplikasi ini.

Best Regards,
David Haryanto
*sent from my white spica

"Indonesian Android Community [id-android]" 

3. How to tell if phone lock screen is up?

4. Any tools for analyzing API level compatibility in my Android code?

5. The application has stopped unexpectedly. Please try again.

6. Displaying the ProgressDialog from the OpenGL thread.

7. Neighbouring Cell info - Clarification needed