title: Android Start App On Boot from BroadcastReceiver Crashing
body: <p>I am trying to start my Android 2.1 Galaxy S Phone on boot and it crashes. </p>
  
  <p>Here is my receiver if I comment out context.startActivity(i) I don't get crash otherwise I see it on powerup.  startActivity from another activity using same ACTION does not cause crash. This seems to be just on Boot.</p>
  
  <pre><code>public class MyBroadcastReceiver extends BroadcastReceiver {
      @Override
      public void onReceive(Context context, Intent intent) {
          Intent i = new Intent();
          i.setAction("DISPLAY_FIRSTPAGE");
          context.startActivity(i);
      }
  }
  </code></pre>
  
  <p>I setup an receiver in the manifest like this:</p>
  
  <pre><code>&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" /&gt;
          &lt;/intent-filter&gt; 
  &lt;/receiver&gt;
  </code></pre>