How can I check the USB socket is plugged or not (Charging with AC / USB)? (android version 2.1 / 2.2)
I am writing a wireless charging application that I want to get different types of charging signals ( wireless , AC charging / USB ). I used broadcastReceiver to get the charging signal and found that using wireless charging and AC charging return the same signal (AC charging). To distinguish wireless charging and AC charging, I want to detect the USB socket is plugged or not. I try to use Intent.ACTION_UMS_CONNECTED to detect the USB signal but it also return SD card.
How can I check the USB socket is plugged or not (Charging with AC / USB)? (android version 2.1 / 2.2)