title: Boot receiver working on froyo but not on ICS
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/9892002/broadcastreceivers-in-ics">BroadcastReceivers in ICS</a>  </p>
  </blockquote>
  
  
  
  <p>I have a boot receiver that calls an other application on boot received,
  this worked fine on froyo. but when i tried running it on ICS it does not work and the intent is  never called !
     This is the Boot Receiver registered in my manifest.</p>
  
  <pre><code>   &lt;receiver android:name=".MyBroadCastReceiver" &gt;
          &lt;intent-filter&gt;
             &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
              &lt;action android:name="android.intent.action.QUICKBOOT_POWERON" /&gt;
  
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  </code></pre>
  
  <p>This is my Broadcast receiver class</p>
  
  <p>public class MyBroadCastReceiver extends BroadcastReceiver {</p>
  
  <pre><code>@Override
  public void onReceive(Context context, Intent intent) {
      // TODO Auto-generated method stub
  
  
       if(intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)){
              Intent i = new Intent(context, BootActivity.class);
            i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
              context.startActivity(i);
  
  
      }else{
  
      }
  }}
  </code></pre>
  
  <p>why doesnt this work... is there any other way to make it work on ICS??</p>