Суть проблемы в том, что он упорно не хочет повторять действие более 2-х раз.
Устанавливаю следующим образом:
Код: Выделить всё
Intent myIntent = new Intent(context, MyService.class);
AlarmManager alarmManager = (AlarmManager)context.getSystemService(context.ALARM_SERVICE);
PendingIntent pendingIntent = PendingIntent.getService(context, 0, myIntent, 0);
Calendar cal = new GregorianCalendar();
cal.setTimeInMillis(System.currentTimeMillis());
cal.set(Calendar.SECOND, 0);
cal.set(Calendar.HOUR_OF_DAY, timePicker.getCurrentHour());
cal.set(Calendar.MINUTE, timePicker.getCurrentMinute());
alarmManager.cancel(pendingIntent);
alarmManager.setInexactRepeating(AlarmManager.RTC, cal.getTimeInMillis(), 1000*15, pendingIntent);
После тишина.
Может кто ниюудь показать куда копать?