On Fri, Feb 11, 2011 at 4:01 PM, Jawwad Farooq <[email protected]> wrote:
> Kindly tell me how my application can be notified of the device boot?
> My application is stored on the external memory

Step #1: Get your application off of external memory, since that will not work:

http://developer.android.com/guide/appendix/install-location.html#ShouldNot

Step #2: Set up a BroadcastReceiver in the manifest to watch for the
BOOT_COMPLETED action -- you will also need the accompany permission.

Here is a sample project demonstrating this:

https://github.com/commonsguy/cw-advandroid/tree/master/SystemEvents/OnBoot

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

Android App Developer Books: http://commonsware.com/books

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

Reply via email to