Possible Duplicate:
BroadcastReceivers in ICS
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.
<receiver android:name=".MyBroadCastReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
</intent-filter>
</receiver>
This is my Broadcast receiver class
public class MyBroadCastReceiver extends BroadcastReceiver {
@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{
}
}}
why doesnt this work... is there any other way to make it work on ICS??