Access to SDCard Android memory

0

My goal is to be able to have an information backup that my app generates in a removable memory in Android and that persists even if I delete the app or delete the app's data from the application manager.

I have the following problem, I try to create a directory on the SDCard removable on Android. The documentation says that using Environment.getExternalStorageDirectory () this returns the external directory. But this what it returns is the address: "storage / emulated / 0 /" < - that address corresponds to a partition of the internal memory, that is, it is not what I need.

Link documentation link

I have tried other methods such as Activity.getApplicationContext (). getExternalMediaDirs () , this returns an array with 2 addresses, the first is from internal memory and the second corresponds effectively to external memory, the problem is that when writing in the Media file when uninstalling the app the information that I left there is deleted, also if for example from the application manager you delete the data, this is because the information with this method is linked to the app and It's just what I do not want.

    
asked by Gustavo Mora 16.11.2017 в 23:34
source

0 answers