Home » Android » java – Android – create a service that runs once a day

java – Android – create a service that runs once a day

Posted by: admin June 15, 2020 Leave a comment

Questions:

I’d like to create a service for Android that performs an operation once a day at a given time. What’s an efficient way to accomplish this – I want to make sure I’m not draining the device battery since this service is idle 99% of the time.

How to&Answers:

Not an Android expert, but http://www.androidguys.com/2009/04/02/wake-up-with-the-alarm/ seems to be what you are looking for