Android Q: Get image from gallery and process it
问题 I know it seems like a very basic question, but it's specifically for Android Q. I just want to get an image from Gallery and compress it and send to the server. But because of the Android Q's Scoped Storage, it's harder than I thought. I'll first explain what I did with code: First I send out the intent to pick the image. fun openGallery(fragment: Fragment){ val intent = Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI) intent.type = "*/*" val mimeTypes = arrayOf(