Skip to content

IlaveniRanjith/Android_Background_Service_Implementation

 
 

Repository files navigation

How to make an Android Service to run in the background reliably every N seconds even when the device is idle.

The Idea is the following: Instead of creating a repeating alarm which does not respect the 15 second limit we create an exact alarm that is allowed with the idle state. The trick is that every time the alarm goes off, we set it again 15 seconds later! We created a background service which runs every 15 seconds and make a Toast !!

About

Run an Android service in the background reliably every N seconds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%