Skip to content Skip to sidebar Skip to footer

Could Alarmmanager.setinexactrepeating Not Broadcast Intents When The Device Is In Sleep Mode?

I have a very simple class that sets and cancels an AlarmManager to broadcast intents: public class MyIntentsAlarm { public void setAlarm(Context context){ AlarmManager am = (A

Solution 1:

Try this

     SystemClock.elapsedRealtime()

replacing with

    System.currentTimeMillis()

Post a Comment for "Could Alarmmanager.setinexactrepeating Not Broadcast Intents When The Device Is In Sleep Mode?"