Reputation: 21
I am developing an android app that uses AlarmManager. The app has to be very accurate, but AlarmManager.setExact is available only from API 19 (Android Kitkat), and I have an old phone that its android version is 4 (API 16). I tried using a service, but it stops when I lock the phone. I need an alternative that works for APIs below 19. Does anyone have an idea?
Upvotes: 1
Views: 685
Reputation: 93614
Just set(). Before API 19, set was an exact set. setExact was added when set was made inexact.
Upvotes: 1