![]() It uses android.os.storage.IMountService and android.os.ServiceManager and I don't seem to have access to it. Log.w("MediaFormat", "Unable to locate IMountService") ![]() Log.w("MediaFormat", "Unable to invoke IMountService.formatMedia()") Intentionally blank - there's nothing we can do here Service.formatVolume(Environment.getExternalStorageDirectory().toString()) I took a look at the froyo source code and it's something like: final IMountService service = As you may know, there is an option in Settings \ Storage \ Erase SD Card. not practical but it's a requirement that I need to implement. ![]() Don't ask me why I need to do this if it's already in the OS. I need to format the SD card if the user selects the option in my app. Things should be simple, but as most of the time, in Android, aren't.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |