Java tutorial
//package com.java2s; import android.graphics.Bitmap; public class Main { private static boolean checkBitmap(Bitmap bitmap) { if (bitmap == null) { return false; } if (bitmap.getWidth() <= 0 || bitmap.getHeight() <= 0) { return false; } return true; } }