On Sat, Jan 21, 2012 at 1:38 AM, Khushbu Shah
<[email protected]> wrote:
> Now the problem is that my application starts on boot completed every
> time whether auto start is enabled or disabled. Is it possible to not
> start application when auto start is disabled ?

Use PackageManager and setComponentEnabledSetting() to enable and
disable the BOOT_COMPLETED BroadcastReceiver. When disabled, your
BroadcastReceiver will not be invoked when the device reboots.

-- 
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