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. Motorola Android Phone Coming to Verizon?

According to leaked reports, Verizon Wireless will offer Motorola
Inc. Android phone, codenamed holes,in October.

The news, which broke on a Russian fan site and clearly as-yet
unsubstantiated, is accompanied by leaked images that show the Sholes
having a QWERTY slide-out keyboard, touchscreen, 5-megapixel camera
and Wi-Fi.

The Sholes, if the report is correct, will continue Moto forward
momentum for Android, which is widely seen as a last saving grace for
the handset division, which, while posting a surprise profit last
week, is still suffering from having to play catch-up in the
smartphone space. Motorola said during its earnings call that it will
introduce two Google Android phones in mid-September, one catering to
the tween/{*filter*} set.

It also has launched advanced Android development resources through
MOTODEV, offering developers early access to a new suite of Google
Android tools and programs, along with the opportunity to attend the
next MOTODEV Summit in San Diego, CA, on October 6, for advanced
training and information-gathering. The program is intended to
accelerate the development of applications to be used on Motorola's
mobile devices using the Android operating system.

"Motorola is focused on helping our global network of best-in-class
developers create, deploy and successfully market their Android
applications to ultimately unleash greater innovation into the mobile
application development space," said Christy Wyatt, vice president for
software platforms and ecosystem at Motorola. "We believe Android and
open software has the freedom and flexibility to foster innovation,
accelerate time to market, and deliver the most personal and
customized mobile experiences for consumers."
--~--~---------~--~----~------------~-------~--~----~

2. HVGA T-Mobile G1/G2 vs. iPhone

>From what I can gather it appears that both the T-Mobile G1and the
iPhone have HVGA - 320x480 displays.

However, one very important difference is that the T-Mobile phones
only support 64k colors, while the iPhones support 16M colors.

Can someone confirm that?

tia.
--~--~---------~--~----~------------~-------~--~----~

3. Architecture dilema

4. Upgrading from SDK 1.1 to 1.5 - map API key not valid?

5. Network connection from my development machine to the emulator - How To?

6. Select a specific InputMethod by program

7. content://sms Content Observer not invoked