Piasy / BigImageViewer

Big image viewer supporting pan and zoom, with very little memory usage and full featured image loading choices. Powered by Subsampling Scale Image View, Fresco, Glide, and Picasso. Even with gif and webp support! 🍻
MIT License
3.98k stars 400 forks source link

saveImageIntoGallery not working on Android 11 #229

Closed seeeeal closed 3 years ago

seeeeal commented 3 years ago

Device: Redmi10x Android11 (MIUI12.5.2)

java.lang.IllegalArgumentException: Unsupported MIME type image/jpg
        at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:172)
        at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
        at android.content.ContentProviderProxy.insert(ContentProviderNative.java:549)
        at android.content.ContentResolver.insert(ContentResolver.java:2174)
        at android.content.ContentResolver.insert(ContentResolver.java:2136)
        at com.github.piasy.biv.view.BigImageView.saveImageIntoGallery(BigImageView.java:335)
Piasy commented 3 years ago

PR is welcome!

Piasy commented 3 years ago

v1.8.1 is released, check it out.

amentan commented 2 years ago

Tips,Remember to add in app manifest. `

</queries>`