Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

Camera image not saved #437

Description

@vernazza

Expected Behavior

Captured image exists

Actual Behavior

Captured image doesn't exist

Steps to Reproduce the Problem

  1. Create a launcher
 launcher = registerImagePicker { result ->
            if (result.isNotEmpty()) {
                val exists = File(result.first().path).exists()
            }
}

  1. Call the launcher
    launcher.launch(CameraOnlyConfig())

The file returned as result doesn't exist.
In Logcat I find:

MediaScannerConnection  D  Scanned /storage/emulated/0/Android/data/packagename/files/Pictures/Camera/IMG_20230220_184510_996.jpg to null
ImagePicker             D  File /storage/emulated/0/Android/data/packagename/files/Pictures/Camera/IMG_20230220_184510_996.jpg was scanned successfully: null
ImagePicker             D  scanFile is failed. Uri is null

Specifications

  • Image Picker Version: 3.0.0
  • Android OS: Android 12
  • Phone: Samsung S22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions