Java tutorial
//package com.java2s; import android.graphics.Bitmap; public class Main { public static int getBitmapSize(Bitmap bitmap) { if (null == bitmap) { return 0; } return bitmap.getRowBytes() * bitmap.getHeight(); } }