Obtain total permissions to move files to the external card: microSD

2

I have been developing an app for a few months, and I still need to be able to move files to the external one from Lollipop onwards (Android M, etc). With the following line of code the user is shown a window for Show SD, mark and give in Select, but: How do I get permission to move to the microSD?

startActivityForResult(new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE), 42);

I have looked at many websites that indicate that it works for them, or it worked on Lollipop but I do not see results. Let's see if someone can help me.

I was looking at this link, in case it could be useful:

link

  

I do not see that it works: I still can not move files to the external one.

    
asked by Sergio 27.06.2017 в 13:36
source

1 answer

-1

I think what you want is to enable the option to move your app to the Sdcard, for this you have to enable the option within your AndroidManifest.xml

link

<manifest 
...
...
android:installLocation="auto">

This will enable you to move your application to the SDcard.

    
answered by 05.07.2017 в 15:19