Android | 合法醫療器材資訊網
2020年11月16日—ACTION_OPEN_DOCUMENT_TREE.Thisworkedformeoutofthebox.Point3:Onethingwasstillconfusingforme:IfItriedtousesomething ...
Point 1: blackapps is right in the comments to the original question and this question is duplicate of e.g. those:
Create new file in the directory returned by Intent.ACTION_OPEN_DOCUMENT_TREE[1]
or
Write file to directory using Intent.ACTION_OPEN_DOCUMENT_TREE[2]
Point 2 (Quick answer): One should use in this case DocumentFile.fromTreeUri(this, uri) with the URI returned from the Intent.ACTION_OPEN_DOCUMENT_TREE. This worked for me out of the box.
Point 3: One thing was still confusing for me:
If I tried to use something like this (from the original guide[3], which I used) - to query metadata of the URI:
Cursor cursor = getContentResolver().query(uri, null, null, null, null, null);Or if I tried to call something like this, hoping to create new document without use of DocumentFile, but instead using direct...
Access documents and other files from shared storage | 合法醫療器材資訊網
ACTION_OPEN | 合法醫療器材資訊網
Android 11 ACTION_OPEN_DOCUMENT | 合法醫療器材資訊網
android Q 使用ACTION_OPEN | 合法醫療器材資訊網
Android | 合法醫療器材資訊網
Create new file in the directory returned by Intent ... | 合法醫療器材資訊網
Intent | 合法醫療器材資訊網
Java Intent.ACTION_OPEN | 合法醫療器材資訊網
从共享存储空间访问文档和其他文件 | 合法醫療器材資訊網
使用“存储访问框架”打开文件 | 合法醫療器材資訊網
【放射性同位素診斷設備】許可證字號:衛署醫器輸字第000236號
器材品名:放射性同位素診斷設備許可證字號:衛署醫器輸字第000236號註銷狀態:已註銷註銷日期:1985/09/26註銷理由:未展延而逾...