title: Detecting the device being plugged in
body: <p>I would like to be able to detect whether or not the device is plugged in.  I would like to be able to just query that the same way we can do for the connectivity state.  Is that possible or do I need to create a broadcast receiver that listens for the battery events?</p>