Format SD card in Android
问题 Things should be simple, but as most of the time, in Android, aren't. I need to format the SD card if the user selects the option in my app. Don't ask me why I need to do this if it's already in the OS... not practical but it's a requirement that I need to implement. As you may know, there is an option in Settings \ Storage \ Erase SD Card . I took a look at the froyo source code and it's something like: final IMountService service = IMountService.Stub.asInterface(ServiceManager.getService(