I program with java for an android application and I wish to control the current that the USB applies. How do I do that?
I want to turn on and off the electric current of the USB.
I don't think you can do that. The Android device is a USB client and not a host, thus it only receives the electric current on its USB bus and it's not able to control it. And AFAIK the USB current (voltage) is something defined by the USB standard and not modifiable.