alarmmanager - Alarm manager not calling exact time in android application. I have to call alarm after every 15 sec -


this question has answer here:

 alarmmanager manager = (alarmmanager)mainactivity.this.getsystemservice(context.alarm_service);     intent intent = new intent(mainactivity.this, demoreceiver.class);    pendingintent     pendingintent = pendingintent.getbroadcast(mainactivity.this, 0, intent, pendingintent.flag_cancel_current);     manager.setinexactrepeating(alarmmanager.rtc, 0, 20000, pendingintent); 

i set 20 sec time interval call alarm taking 1-1.10 min call

which android version using ?

apparently cannot set short intervals in android alarmmanager.

here - scheduling alarm every second in android 5.1


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo