I'm curious if there's a method to start up an application whenever the device has been plugged into a power source. I've done a bit of Google searching but all I can find is detecting when a device is plugged in while an application is already running.
Anyone have any resources on the subject?