سؤال

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.

هل كانت مفيدة؟

المحلول

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

نصائح أخرى

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top