[問題] Android 6.0 存取External Storage

看板AndroidDev作者 (梅姬?沒雞?傻傻分不清楚)時間9年前 (2016/10/31 17:41), 9年前編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
網路上看到一段話 "In Android 6.0, any device that is not adopted is considered portable. […] Third-party apps must go through the Storage Access Framework to interact with files on portable storage; direct access is explicitly blocked for privacy and security reasons." 我的需求是 目前Android 6.0 External Storage 接上之後 我要用Application存取 是否無法達到 我接了一個usb和sd card 分別 /storage/3635-6336 /storage/3962-6336 上面兩個路徑都無法讀寫 p.s. Environment.getExternalStorageDirectory() 為 /storage/emulated/0 這可以正常存取,因為是Internal Storage 模擬出來的 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 27.242.66.106 ※ 文章網址: https://www.ptt.cc/bbs/AndroidDev/M.1477906871.A.498.html

10/31 21:14, , 1F
https://goo.gl/57O4eg,參考一下。
10/31 21:14, 1F
我在試試,感恩 答道我想要的需求 再請教,那個Dialog一定會跳出來吧? 應該沒辦法hide吧? ※ 編輯: magic704226 (27.242.66.106), 11/01/2016 15:18:46
文章代碼(AID): #1O5n6tIO (AndroidDev)