Hatice Sarp
04/07/2021, 8:21 AMval getContent =
context.activityResultRegistry.register(
"pickImage",
owner,
ActivityResultContracts.GetContent()
) { uri ->
if (uri != null) {
uriState.value = UriState.UriReady(uri)
}
}
getContent.launch("image/*")
Hi everyone, I fetch Uri's of photos i choose with ActivityResultContracts
. I can view downloads folders when I get uri in this way. I want to get the photos from the albums in the gallery. How can I do this with ActivityResultContracts
?