crash - Android Start App On Boot from BroadcastReceiver Crashing -


I'm trying to start my Android 2.1 Galaxy S phone on boot and it crashes

I get the reference, so my receiver is. Initiality (i) I do not get crashes or else I see it on powerup. The beginning of activity is not the cause of the accident due to any activity using the same activity, it is only on the boot.

  The public class broadcasts the receiver broadcasts receiver {@ Override on public blank recipient (reference reference, intended intent) {intent i = new intent (); I.setAction ("DISPLAY_FIRSTPAGE"); Context.startActivity (i); }}   

Such a receiver setup in the manifest:

  & lt; Receiver Android: name = ". MyBroadcastReceiver" & gt; Android: Enabled = "True" Android: Exported = "False" Android: Permission = "android.permission.RECEIVE_BOOT_COMPLETED" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.BOOT_COMPLETED" /> & Lt; / Intent-Filter & gt; & Lt; / Receiver & gt;    

Please first look at the log before anyone else. The problem in this case (both with its original code and your fixed code) will be quite clearly explained in the crash in the log.

Comments