简体   繁体   中英

How to select location in removable SD card in Android?

如何选择 SD 卡位置以保存视频

Hi I am facing a problem to choose the location in external SD card. Some app like ShareIt using the below concept (See Image). How to open this in Android.

Thanks in advance

使用 Intent.ACTION_OPEN_DOCUMENT_TREE 开始一个意图。

have you added

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

above lines in your manifest

have a look through the link Android_Open_External_Storage

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM