onReceive() method not opening application while device is in sleep mode..?

view full story

http://stackoverflow.com – Hi friends i have a problem... Actually i use this code to open my application in certain time..the app is working fine but when the device is in sleep mode not working..?? public class MyBroadCastReceiver extends BroadcastReceiver { @Override public void onReceive(Context ctx, Intent intent) { Intent intent = new Intent(ctx, ActivityMain.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); ctx.startActivity(intent); } } ActivityMain.java intent = new Intent(getBaseContext(), MyBroadCastRece (HowTos)