Use A Broadcast Receiver For Background Services In Android
The Polyglot Developer
OCTOBER 7, 2014
As an Android developer, you’ll often run into the scenario where you need to perform tasks and display notifications for your app in the background. To retain battery power on our users device we are going to run background tasks using a broadcast receiver. This will prevent a thread from constantly running in the background draining the battery quickly over time.
Let's personalize your content