Programmatically Turn Off USB Storage on Android Devices

前端 未结 3 1247
说谎
说谎 2020-12-06 01:20

On many android devices, when the device is plugged into the USB port of a computer or even on some USB charging devices, the phone goes into USB Storage mode. When the devi

3条回答
  •  死守一世寂寞
    2020-12-06 01:45

    You can detect it (you have the link), but, AFAIK, you can't mount/unmount USB storage at least not with the public SDK APIs. In Honeycomb (3.0 and above), USB mass storage is no longer used to access the device's external storage, so your app and a computer can access it simultaneously.

提交回复
热议问题