Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.widget.ImageView; public class Main { public static void setImage(Bitmap bitmap, ImageView imageview) { if (bitmap != null) { imageview.setImageBitmap(bitmap); } } }