Question kinda sais it:
How can I detect if the USB cable (and maybe thus power?) was disconnected from the device? I thought there would be some manifest permission that I could use to google around but I didn't find anything).
Also there was somebody here on Stackoverflow that said something about not detecting the usb removal but the change of charging status but I lost the link and couldn't for the love of god find it again :< Hope you have some ideas what I could do.