简体   繁体   English

WRITE_EXTERNAL_STORAGE权限

[英]WRITE_EXTERNAL_STORAGE Permission

Based on google docs beginning with Android 4.4 (API level 19) Android apps doesn't need WRITE_EXTERNAL_STORAGE Permission to write to its own application-specific directories. 基于从Android 4.4(API级别19)开始的Google文档,Android应用不需要WRITE_EXTERNAL_STORAGE权限即可写入其自己的应用特定目录。 uses-permission 使用许可

So I removed this permission for API 19: 因此,我删除了API 19的此权限:

<uses-permission
    android:name="android.permission.WRITE_EXTERNAL_STORAGE"
    android:maxSdkVersion="18" />

But after publishing app, we find out some android devices(not all of them) with API > 18 have problem and app can't write to it's own application-specific directories. 但是在发布应用程序后,我们发现API> 18的某些Android设备(并非全部)存在问题,并且应用程序无法写入其自己的应用程序特定目录。 I remove android:maxSdkVersion and published app again and problem solved. 我删除了android:maxSdkVersion并再次发布了应用程序,问题已解决。

How is that possible? 那怎么可能? And what I should do to remove this permission and my app work in all devices? 我应该怎么做才能删除此权限,并且我的应用程序可以在所有设备上正常工作?

check following link hope you will find your ans 检查以下链接希望你会发现你的ans

Require permission only for older android versions: maxSdkVersion does not work? 只需要旧版android的权限:maxSdkVersion不起作用?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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