Question

Is there any way to format a USB mass storage device programmatically in Android? I need to detect USB mass storage devices and give an option to format it. Any examples will be appreciated.

Thanks in advance.

Était-ce utile?

La solution

Sorry, but there is no support for any of this in the Android SDK.

Autres conseils

May be help this: I formatted external sd card from console with root permissions + busybox. I did it on china mobile: busybox mkfs.vfat /dev/block/mmcblk0

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top