title: Check if device is plugged in
body: <p>My app has a broadcast receiver to listen for changes to <a href="http://developer.android.com/training/monitoring-device-state/battery-monitoring.html#MonitorChargeState" rel="noreferrer"><code>ACTION_POWER_CONNECTED</code></a>, and in turn flag the screen to stay on.</p>
  
  <p>What I am missing is the ability for the app to check the charging status when it first runs. Can anyone please help me with code to manually check charging status?</p>