I want to make an application which has auto start option in its settings. I have made Settings activity in my application which is derived from PreferenceActivity and give
You can use the shared preference to store a Boolean value for isAutoStartEnabled, and check this value in the BroadcastReciver, fire an intent only if it's true.
In your case, the problem is not whether you receive the broadcast but who receives the broadcast. Best of luck..