作者magic704226 (梅姬?没鸡?傻傻分不清楚)
看板AndroidDev
标题[问题] Android 6.0 存取External Storage
时间Mon Oct 31 17:41:07 2016
网路上看到一段话
"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://webptt.com/cn.aspx?n=bbs/AndroidDev/M.1477906871.A.498.html
我在试试,感恩
答道我想要的需求
再请教,那个Dialog一定会跳出来吧? 应该没办法hide吧?
※ 编辑: magic704226 (27.242.66.106), 11/01/2016 15:18:46