Category "activityresultcontracts"

Activity result contracts with Ucrop: cannot get crop result into app

I have an activity that is supposed to get an image from gallery and preview it before allowing the user to upload it to a database. I am using UCrop as my imag

How to limit ActivityResultContract.GetContent to media (image or video)

Is there a way to make ActivityResultContract.GetContent filter only media files? private val selectMediaResultLauncher = registerForActivityResult(Activity