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

Đang mở
#1,337 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, java
Lĩnh vực
mobile

Hướng nghiên cứu

Start by tracing how the plugin creates the FileProvider URI and how the app launches ACTION_VIEW with it; the issue does not name source files or tests. Check whether the receiving system app can access and resolve the provided URI, then reproduce the reported photo-opening failure. Done means the same image opens successfully through ACTION_VIEW.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

插件通过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>

Ngôn ngữ chính
Java
Star
7.8k
Fork
1.3k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Tencent/Shadow

Tất cả issue của Tencent/Shadow

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.