Working example of setting alarm with repeating stuff, checking if alarm was set with pendingIntent
Here is short and quite (imho) understanding part of code: //starting #1 AlarmManager alarmManager = (AlarmManager) getActivity().getSystemService(Context.ALARM_SERVICE); Intent intent = new Intent(getActivity(), MyReceiver.class); intent.setAction(MyReceiver.ACTION_ALARM_RECEIVER);//my custom string action name PendingIntent pendingIntent…