setalarmclock

setAlarmClock() fires too late in doze mode

巧了我就是萌 提交于 2020-04-10 18:46:53
问题 I have soooo much trouble getting my radio alarm clock working as intended and I have read a lot of threads here about that topic, but unfortunatley none did help me. AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE); Intent intent = new Intent(this, AlarmReceiver.class); PendingIntent penInt = PendingIntent.getBroadcast(this, intentId, intent, 0); This method of distinction between the API levels I found here on stackoverflow and put it inside my calcNextAlarm() function (plus