Skip to content
#

mimetype

Here are 28 public repositories matching this topic...

javakam
javakam commented Sep 7, 2021

基本上每一个issue都会提到的问题👉Android Q及以上版本获取路径为空

🌴测试环境 API 30 , Android 11.0

https://user-images.githubusercontent.com/15343661/132307433-c4cde301-d9b5-4bc9-b460-fcb70db4dbcb.mp4

🍎 可以看到, 同一文件会有两种不同的 Uri :

  1. 从侧边栏手机图标进入时获取到文件的Uricontent://com.android.externalstorage.documents/...,此时路径不为空;
  2. 从侧边栏Download进入时Uricontent://com.android.providers.downloads/..., 此时路径为空。

🌴建议使用

Improve this page

Add a description, image, and links to the mimetype topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the mimetype topic, visit your repo's landing page and select "manage topics."

Learn more