title: My application not get started when device started?
body: <p>I've written following class to start my application activity <code>Home.class</code> but on device start up it shows error <strong>forced close</strong>.</p>
  
  <pre><code>public class MyBootRecvr extends BroadcastReceiver {
  
      @Override
      public void onReceive(Context context, Intent intent) {
          Intent i = new Intent(context, Home.class);
          i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
          i.addFlags(Intent.FLAG_FROM_BACKGROUND);
          context.startActivity(i);
          Toast.makeText(context, "Where is my KeyBoard", Toast.LENGTH_LONG)
                  .show();
      }
  }
  </code></pre>
  
  <hr>
  
  <p><strong>Permissions and receiver tags in application.</strong></p>
  
  <hr>
  
  <pre><code>&lt;receiver
       android:name=".Home"
       android:enabled="true"
       android:permission="android.permission.RECEIVE_BOOT_COMPLETED" &gt;
       &lt;intent-filter&gt;
           &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
           &lt;category android:name="android.intent.category.DEFAULT" /&gt;
        &lt;/intent-filter&gt;
   &lt;/receiver&gt;
  </code></pre>