網路上看到一段話
"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
我在試試,感恩
答道我想要的需求
再請教,那個Dialog一定會跳出來吧? 應該沒辦法hide吧?
※ 編輯: magic704226 (27.242.66.106), 11/01/2016 15:18:46