A
A
Atlllantis2018-05-28 18:33:24
Android
Atlllantis, 2018-05-28 18:33:24

How to send an SD card access request?

How to send an access request to an external (removable) SD card?
It is necessary through the dialogue (as for example in Google photo):
5b0c20c4df2e3294554623.pngI did not find anything like this in Google, all that is - through Intent.ACTION_OPEN_DOCUMENT_TREE.
UPD: It seems that few people understand the difference between built-in memory and an removable SD card (i.e. a flash drive, physical, which you can pick up), which is why there are a lot of useless answers below.
Please do not write more stupid answers if you do not understand the topic of the question!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
illuzor, 2018-05-28
@iLLuzor

It's called Runtime Permissions
https://habr.com/post/278945/

S
Semyon Novikov, 2018-05-28
@semennovikov123

No special permissions are required to read and write to an external SD. Standard only:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question