Get power state when Android app starts
<p>How to know if the power is connected or not when my application is starting ?</p>

<p>I know, that I can get power state using broadcast receiver with <code>ACTION_POWER_CONECTED</code> and <code>ACTION_POWER_DISCONNECTED</code> but when my app is starting I do not received these Broadcasts.</p>
