Alarm Expires earlier than intended when using setInexactRepeating

点点圈 提交于 2019-12-02 06:06:09

问题


1) Sample was used for repeating alarm.
2) setInexactRepeating(60000,60000), first one expires happens at 20 to 30 secs, rest ones expires in time i.e 60secs.
3) setInexactRepeating(1000 * 60 * 25,1000 * 60 * 25), first one expires happens at 10 to 14 mins~, rest ones expires in time i.e 25mins.
4) Docs says "Your alarm's first trigger will not be before the requested time".

Anyone experienced this before?using setExact/set and restart the alarm works well and setRepeating has problem too!

来源:https://stackoverflow.com/questions/22849474/alarm-expires-earlier-than-intended-when-using-setinexactrepeating

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!