[Solved] Android: Starting Alarm Service from Dialog
Your code based on Android Dev Guide is working, to be more precise, this one: alarmMgr = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE); Intent intent = new Intent(context, AlarmReceiver.class); PendingIntent alarmIntent = PendingIntent.getBroadcast(context, 0, intent, 0); alarmMgr.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP,SystemClock.elapsedRealtime() + 10 * 1000, alarmIntent); Alarm.Receiver.java: public class AlarmReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { /* class1 = … Read more