androidusb

how to programmatically enable and disable USB in android Application


in my application i want to enable / disable the USB connection in the phone or tab(Android based) programmatically.I googled , but did not find any solution.If it is possible give me some ideas to do this.or provide some useful code for the same.


Solution

  • This is not possible from the Android SDK.