Android10获取相册图片失败

报错open failed: EACCES:需要在 AndroidManifest.xml 中加入 android:requestLegacyExternalStorage=“true

<application    android:allowBackup="true"    android:icon="@mipmap/ic_launcher"    android:label="@string/app_name"    android:roundIcon="@mipmap/ic_launcher_round"    android:supportsRtl="true"    android:requestLegacyExternalStorage="true"    android:theme="@style/AppTheme">

更多相关文章

  1. PULL解析XML
  2. Android获取当前时间
  3. PULL解析XML
  4. android:获取网络时间、文件路径,修改包名,发布release版本
  5. android获取sd卡路径方法:
  6. android用于打开各种文件的intent
  7. Android(安卓)动态获取文本宽度
  8. android 权限
  9. Android(安卓)支付宝,微信支付

随机推荐

  1. Android tips2
  2. Android 数据序列化总结
  3. PendingIntent
  4. Android中自定义属性(attrs.xml,TypedArra
  5. Android开发者指南(10) —— Android API
  6. Android中的Space组件
  7. Android API 中文 (50) —— SpinnerAdapte
  8. androidTV 9.0 开发调用系统jar异常报错,j
  9. Android 图片加水印
  10. 使用valgrind检测Android native程序的内