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
Came across this library, didn't try it, but looks good for what you want: https://github.com/airk000/Trigger
Evernote android-job might be a better solution though :)