How can I check whether the device is connected to a Power supply, USB or to a Dock
<p>I'm developing an application in which I want to check like to which power source my device is connected to? I know it is possible by some way but I couldn't figure it out. Thanks for helping.</p>
