Skip to content

fix gallery permission - #86

Merged
Alex009 merged 8 commits into
icerockdev:developfrom
Lobynya:develop
Aug 6, 2025
Merged

fix gallery permission#86
Alex009 merged 8 commits into
icerockdev:developfrom
Lobynya:develop

Conversation

@Lobynya

@Lobynya Lobynya commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

For picking image from gallery ImagePickerFragment use

    val intent = Intent(
        Intent.ACTION_PICK,
        MediaStore.Images.Media.EXTERNAL_CONTENT_URI
    )
    startActivityForResult(intent, requestCode)

this method don't need any permission

in the current implementation, the application needs to have android.permission.READ_MEDIA_IMAGES in the manifest, and Google Play considers such permission unnecessary for a single file selection

@Alex009

Alex009 commented Aug 6, 2025

Copy link
Copy Markdown
Member

hi

  1. need fix for CI
  2. this solution will works on all supported API levels?

@Lobynya

Lobynya commented Aug 6, 2025

Copy link
Copy Markdown
Contributor Author

Yes, I check android api versions: 24, 28, 34, 36

fix ci

Comment thread media/src/androidMain/kotlin/dev/icerock/moko/media/picker/ImagePickerFragment.kt Outdated
Comment thread media/src/androidMain/kotlin/dev/icerock/moko/media/picker/MediaPickerFragment.kt Outdated
@Alex009
Alex009 merged commit a86c5e9 into icerockdev:develop Aug 6, 2025
1 check passed
@Alex009 Alex009 mentioned this pull request Aug 6, 2025
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

Successfully merging this pull request may close these issues.

2 participants