-2

I programatically set fire AlarmManager every 10 seconds, This code works on all devices except the one I relly need.

On this device it calls every 60 seconds

Question: is there any limitation/configuration settings ?

alarmMgr.setInexactRepeating(AlarmManager.RTC_WAKEUP, SystemClock.elapsedRealtime(), 10000, alarmIntent);
Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Sergey
  • 1

2 Answers2

0

You can use Handler or Executors or TimerTask

Oussema Aroua
  • 5,225
  • 1
  • 24
  • 44
0

As mentioned on https://developer.android.com/reference/android/app/AlarmManager.html newer android OS versions will mess up with your intervals. If you need exact timing you should use SetWindow or SetExact