Android 11 can’t write/read image from camera

Welcome! Forums Unity Plugins In-App Web Browser Android 11 can’t write/read image from camera

Tagged: 

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #11607
    Renatto
    Participant

    Scoped storage (https://www.raywenderlich.com/10768834-scoped-storage-tutorial-for-android-11-deep-dive) interferes with writing/reading images taken with camera inside the IN-APP-BROWSER.

    
    11-28 20:36:46.698  1428  5196 W ExifInterface: Invalid image: ExifInterface got an unsupported image format file(ExifInterface supports JPEG and some RAW image formats only) or a corrupted JPEG file to ExifInterface.
    11-28 20:36:46.698  1428  5196 W ExifInterface: java.io.EOFException
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at android.media.ExifInterface$ByteOrderedDataInputStream.readShort(ExifInterface.java:4653)
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at android.media.ExifInterface.readByteOrder(ExifInterface.java:3653)
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at android.media.ExifInterface.parseTiffHeaders(ExifInterface.java:3673)
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at android.media.ExifInterface.getRawAttributes(ExifInterface.java:2920)
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at android.media.ExifInterface.loadAttributes(ExifInterface.java:1987)
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at android.media.ExifInterface.<init>(ExifInterface.java:1541)
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at com.android.providers.media.MediaProvider.getRedactionRanges(MediaProvider.java:6423)
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at com.android.providers.media.MediaProvider.openFileAndEnforcePathPermissionsHelper(MediaProvider.java:6004)
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at com.android.providers.media.MediaProvider.openFileCommon(MediaProvider.java:5685)
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at com.android.providers.media.MediaProvider.openFile(MediaProvider.java:5640)
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at android.content.ContentProvider.openAssetFile(ContentProvider.java:2004)
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at android.content.ContentProvider.openAssetFile(ContentProvider.java:2068)
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at android.content.ContentProvider$Transport.openAssetFile(ContentProvider.java:498)
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:272)
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at android.os.Binder.execTransactInternal(Binder.java:1154)
    11-28 20:36:46.698  1428  5196 W ExifInterface:         at android.os.Binder.execTransact(Binder.java:1123)
    11-28 20:36:46.701  1428  5196 I MediaProvider: Using lower FS for /storage/emulated/0/Pictures/JPEG_20201128_203346_1415891548808817744.jpg
    
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.