I\'m building an Android application, which makes use of a manifest broadcast receiver to know when the device is plugged in. I think Android 5.0 JobScheduler API would be a mu
Important Update
For Now onward everybody should use WorkManager for deferrable background tasks.
https://developer.android.com/guide/background/#workmanager https://developer.android.com/topic/libraries/architecture/workmanager/