Below I have written the code for getting the Image using Bitmap in your Android App. Here we have passed two parameters in the method the first one is the Image View and second one is the url of the image that is to be shown on the image view.
public static void setPic(ImageView imageView, String imagePath)
{
BitmapFactory.Options bmOptions = new BitmapFactory.Options();
Bitmap bitmap = BitmapFactory.decodeFile(imagePath, bmOptions);
imageView.setImageBitmap(bitmap);
}
0 Comment(s)