Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileProvider生成的uri无法系统应用中打开 #1337

Open
RayTigerZ opened this issue Jul 17, 2024 · 1 comment
Open

FileProvider生成的uri无法系统应用中打开 #1337

RayTigerZ opened this issue Jul 17, 2024 · 1 comment

Comments

@RayTigerZ
Copy link

插件通过FileProvider生成一个uri:content://com.tencent.shadow.contentprovider.authority.dynamic/com.***/Downloads/B1_F-1_074458.png,使用ACTION_VIEW打开照片显示“文件格式不支持或文件已损坏”,感觉像是无法正确解析这个uri

<provider android:name="androidx.core.content.FileProvider" android:authorities="com.***" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths"/> </provider>

@RayTigerZ
Copy link
Author

图片在文件管理器中是能正常打开、显示的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant