Has anyone tried this flag for wipeData()?
I think WIPE_EXTERNAL_STORAGE flag doesn’t work because after calling the function, it will reset the phone to factory settings leaving the previous data on the external storage device. I hope someone can confirm about this one.
Thanks
From the documentation for wipeData(): External storage such as SD cards will not be erased. Also, the parameter currently must be 0. I’ve been wrestling with this issue as well and have found the only solution is to get the path from
Environment.getExternalStorageDirectory()and recursively delete directory contents.