How to get a Bitmap object from an Uri (if I succeed to store it in /data/data/MYFOLDER/myimage.png or file///data/data/MYFOLDER/myimage.png) to u
/data/data/MYFOLDER/myimage.png
file///data/data/MYFOLDER/myimage.png
Inset of getBitmap which is depricated now I use the following approach in Kotlin
getBitmap
PICK_IMAGE_REQUEST -> data?.data?.let { val bitmap = BitmapFactory.decodeStream(contentResolver.openInputStream(it)) imageView.setImageBitmap(bitmap) }