Especially on millet phone, in the system hibernation, often timing broadcast is delayed, do not know how to solve, experts urged to achieve on the phone about a one hour, 10 minutes interval countdown how to do?
Reply:
You do not know what needs
But handler.sendMessageDelayed (msg, 10 minutes) This does not know if
Reply:
Alarm handler does not seem appropriate treatment of such incidents, and delayed 10 minutes, if the phone hibernation, handler mount thread if by kill off, fear is not.
Reply:
AlarmManager am = (AlarmManager) getSystemService (ALARM_SERVICE);
long now = SystemClock.elapsedRealtime ();
PendingIntent pi = PendingIntent.getService (SplashActivity.this, 0, new Intent (SplashActivity.this, NoticeService.class), 0);
am.setRepeating (AlarmManager.RTC_WAKEUP, now, 1800000, pi);
This implementation is about to start every half hour service
You can look at this http://jingyan.baidu.com/article/4b52d7026b02f2fc5c774b1a.html
Reply:
I tried this, AlarmManager.RTC_WAKEUP this parameter on the millet, there are very serious delays
Reply:
ong now = SystemClock.elapsedRealtime ();
This does not bar
Reply:
I have done the alarm Geigejianyi line ah?
Reply:
Millet system should be optimized to get rid of it will develop a cycle on a regular basis to give you a lot of trouble to return this feeling be his own algorithm problems
Reply:
AlarmManager if not that of others also useless
Reply:
wakeuplock lock and let the system try semi-dormant state, only look at this idea.
Reply:
Millet's alarm service is modified, it will not necessarily wake-up time to wake up the system according to your settings RTC_WAKEUP.
You can try a shutdown alarm clock with millet RTC timer, but when you set the timer type is not necessarily AlarmManager.RTC_WAKEUP, this figure suggest you either try to guess, maybe there will be a windfall.
Reply:
Add that you can use in adb shell inside to see you perform dumpsys alarm timer register is what happens in the end (you may need root privileges)
Reply:
Millet pit, why this, there is a good alternative to the landlord do?
Reply:
I have encountered this problem, find solutions
Reply:
Seeking great God, seeking solutions
Reply:
LZ has a solution yet?
Reply:
Wait for more than a year, this problem has plagued
Reply:
Reply:
It was resolved? ? ? ?
Tangled ah, timers are not allowed. .
Reply:
Landlord still alive? Android 4.4, the system to power, do wake alignment mechanism, API 19 after reference setWindow (int, long, long, PendingIntent) and setExact (int, long, PendingIntent). However, in my Huawei 6p above, there are still 0- 5 minutes delay, seek the ultimate solution.
Reference: http: //maider.blog.sohu.com/282080957.html
No comments:
Post a Comment