I want to select a picture from the SD card of a mobile phone. I use the code below to select and display in my activity
Uri selectedImageUri = data.getData(); selectedImagePath = getPath(selectedImageUri); Uri uri = Uri.parse(selectedImagePath); uploadimage.setImageURI(uri);
It works fine, but I want to convert this image to Bitmap , I have a path to the image and a URI.
How to convert image to bitmap in this case? Please help me, thanks in advance.
source share