android13如何获取存储器写入数据的权限
时间: 2024-01-24 21:01:55
浏览: 47
要在Android 13上获取存储器写入数据的权限,您需要执行以下步骤:
1. 在Andro[idm](https://geek.csdn.net/edu/300981ef51993cfd737d329c71ba77f9?dp_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6NDQ0MDg2MiwiZXhwIjoxNzA3MzcxOTM4LCJpYXQiOjE3MDY3NjcxMzgsInVzZXJuYW1lIjoid2VpeGluXzY4NjQ1NjQ1In0.RrTYEnMNYPC7AQdoij4SBb0kKEgHoyvF-bZOG2eGQvc&spm=1055.2569.3001.10083)anifest.xml文件中添加权限[声明](https://geek.csdn.net/educolumn/2515e40123df6eda04f27b9a3a9cb89f?spm=1055.2569.3001.10083)。在`<manifest>`标签内添加以下[代码](https://geek.csdn.net/educolumn/1572ef9b473b4e00f6b2bf6d428b7c27?spm=1055.2569.3001.10083):
```xml
<uses-[per](https://geek.csdn.net/educolumn/2c6ed1be7edac16b3c9a0c3228eaff0c?spm=1055.2569.3001.10083)mission android:name="android.[per](https://geek.csdn.net/educolumn/2c6ed1be7edac16b3c9a0c3228eaff0c?spm=1055.2569.3001.10083)mission.WRITE_EXTERNAL_STORAGE" />
```