1

Handler.sendMessageAtTime() is reliable?

view story
linux-howto

http://stackoverflow.com – I used sendMessageAtTime() in my app to execute some specific task once a day. So it's used like this : // delayMillis is 24 hours in milliseconds mHandler.sendMessageAtTime(msg, SystemClock.uptimeMillis() + delayMillis); When each message is executed, the code above is executed again. I know it's based on system uptime which excludes deep sleep time. But it seems the job is not executed sometimes. If it's delayed by uptime difference, can it be more than a dozen hours? I don't make sure if it's reliable to use sendMessageAtTime() for daily job. Is it more reliable to use alarm? Thanks (HowTos)