I have been trying to use reflection in case when anybody plug in charger or usb cable to charge their device. Can anybody please tell me what does android implements to interact with the hardware.
I am not exactly interested in the USB I am interested more in the red(amber in case of HTC) led that glow when we connect our device for charging or in case of notification.