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. create multi page form

Hello, I have to create a multi page form (with a field on each page
and a next and previous button on each one) for work, and I'm not sure
about the best way to implement this (should I use multiple activites
or do it all in one and dynamically change textviews, etc.), I'm
pretty lost on this one and any advice would be greatly appreciated.

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

2. Android SDK v 0.7

Hi.

  Does anyone know where I can get Android SDK version 0.7?
  Thanks in advance.

Regards.
Aniruddha.
--~--~---------~--~----~------------~-------~--~----~

3. Request for developers HTC G1 (T-Mobile) review

4. Updating From HTTP

5. copy / paste programatically

6. Use Bundle to Pass Bitmap

7. newb question about layout xml and view class