Not working in Android 13
dhavanikgithub opened this issue · 3 comments
dhavanikgithub commented
massimilianochiodi commented
Have same problem
bineshMobii commented
Still, this same issue is there. I cannot able to open Gallery due to this. Please reply once fixed this.
massimilianochiodi commented
Use android native picker :
private val pickMultipleVisualMedia = registerForActivityResult(
ActivityResultContracts.PickMultipleVisualMedia(
Costanti.NUMERO_IMMAGINI_CENSIMENTO
)
) { uris ->
// Process URIs
Timber.d("Photo Picker URIs count", uris.size)
dagalleria(uris)
}
pickMultipleVisualMedia.launch(PickVisualMediaRequest(ActivityResultContracts.PickVisualMedia.ImageOnly))