WRITE_EXTERNAL_STORAGE权限的必要性
2015-03-25 20:46
204 查看
但是今天写了一个简单的应用小工具,没有声明W ITE_EXTERNAL_STORAGE的权限,导致文件不能正常创建。
忘记在哪看到的,说是4.4以后不用写这个权限了。今天去google官网开了一下
Your app can not read shared files on the external storage when running on Android 4.4, unless your app has the
That is, files within the directory returned by
no longer accessible without the permission. However, if you need to access only your app-specific directories, provided by
then you do not need the
4.4以后并没有降低权限的要求,反而是提升了。
忘记在哪看到的,说是4.4以后不用写这个权限了。今天去google官网开了一下
Your app can not read shared files on the external storage when running on Android 4.4, unless your app has the
READ_EXTERNAL_STORAGEpermission.
That is, files within the directory returned by
getExternalStoragePublicDirectory()are
no longer accessible without the permission. However, if you need to access only your app-specific directories, provided by
getExternalFilesDir(),
then you do not need the
READ_EXTERNAL_STORAGEpermission.
4.4以后并没有降低权限的要求,反而是提升了。
相关文章推荐
- Android6.0权限适配之WRITE_EXTERNAL_STORAGE(SD卡写入)
- Android6.0权限适配之WRITE_EXTERNAL_STORAGE(SD卡写入)
- [转]Android6.0权限适配之WRITE_EXTERNAL_STORAGE(SD卡写入)
- android1.6新增SD卡写权限WRITE_EXTERNAL_STORAGE
- 权限android.permission.WRITE_EXTERNAL_STORAGE 内外置sd卡写权限
- 权限android.permission.WRITE_EXTERNAL_STORAGE 内外置sd卡写权限
- Android6.0权限适配之WRITE_EXTERNAL_STORAGE(SD卡写入)
- Android6.0权限适配之WRITE_EXTERNAL_STORAGE(SD卡写入)
- Android6.0权限适配之WRITE_EXTERNAL_STORAGE(SD卡写入)
- 权限android.permission.WRITE_EXTERNAL_STORAGE 内外置sd卡写权限
- android 不使用READ_EXTERNAL_STORAGE权限进行访问sd卡
- Android4: Write Storage权限问题
- 添加CAMERA,RECORD_AUDIO,WRITE_EXTERNAL_STORAGE 的persmisstions过程
- Android4: Write Storage权限问题
- 转载 Android4: Write Storage权限问题
- Android4: Write Storage权限问题
- READ_EXTERNAL_STORAGE 在23之上的权限获取 在两个app上同样的申请 不同的结果 why
- 读外部存储的权限READ_EXTERNAL_STORAGE
- 读外部存储的权限READ_EXTERNAL_STORAGE
- Android4: Write Storage权限问题