BroadcastReceiver for a Service to catch broadcast Intent ACTION_BOOT_COMPLETED

by Jean-Baptiste Queru » Fri, 27 Feb 2009 23:47:29 GMT


Sponsored Links
 You need to do it in your manifest, since at the point where
boot_completed is sent none of your app code can possibly have run to
register a listener.

Be aware that boot_completed is a point where the system is under
heavy load/contention - be sure to keep your onReceive function as
short as it can possibly be (specifically, avoid I/O if at all
possible).

JBQ






-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Please don't contact me directly.

--~--~---------~--~----~------------~-------~--~----~



BroadcastReceiver for a Service to catch broadcast Intent ACTION_BOOT_COMPLETED

by Jean-Baptiste Queru » Sat, 28 Feb 2009 00:48:13 GMT


 ou should remove
android:permission="android.permission.RECEIVE_BOOT_COMPLETE" from
your receiver tag:

-you have a typo in it.

-what that really means is "I want the sender to hold that
permission", which isn't what you meant, and is probably what prevents
your code from working.

JBQ

On Fri, Feb 27, 2009 at 8:33 AM, Graeme <graeme.br...@btinternet.com> wrote:



--
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Please don't contact me directly.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


BroadcastReceiver for a Service to catch broadcast Intent ACTION_BOOT_COMPLETED

by Marco Nelissen » Sat, 28 Feb 2009 01:18:53 GMT


 


That should be "android.intent.action.BOOT_COMPLETED"

--~--~---------~--~----~------------~-------~--~----~



BroadcastReceiver for a Service to catch broadcast Intent ACTION_BOOT_COMPLETED

by Marco Nelissen » Tue, 03 Mar 2009 00:15:38 GMT


 


No, you should not include
'android:permission="android.permission.RECEIVE_BOOT_COMPLETED"' in
your receiver, for the reasons JBQ explained.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Beginner...How to test android application?

On Thu, Jul 1, 2010 at 12:38 AM, Rushikesh Khadtare



http://wiki.andmob.org/books

Other than that, it is difficult to answer such generic questions,
such as the ones you are asking.

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

Android Training...At Your Office: http://commonsware.com/training

-- 

2. SOLD!!! WTS: x10 mini 2nd baru seminggu

x10 mini has been sold!!!

suhu2 maaf ya klo sms atau emailnya banyak yang saya tidak bales...
soalnya banyak bgt yang reply n tertarik x10 mini....

terima kasih atas waktu dan tempat untuk berdagangnya suhu2 dan
momod...



-- 
"Indonesian Android Community [id-android]" 

3. Super Mario live wallpaper for Android, No Root Required!

4. Beginner's TableLayout question

5. Appwidget Getting Location Updates

6. wifi with WPA2 encryption cannot reconnect to APafter click forget

7. fstatfs fails (-1) always?