Answers for "how to convert file path to bitmap in android"

2

how to get bitmap from file in android

You should be able to use BitmapFactory:

File mSaveBit; // Your image file
String filePath = mSaveBit.getPath();  
Bitmap bitmap = BitmapFactory.decodeFile(filePath);
mImageView.setImageBitmap(bitmap);
Posted by: Guest on January-07-2021

Code answers related to "how to convert file path to bitmap in android"

Browse Popular Code Answers by Language