Java tutorial
//package com.java2s; import android.graphics.Bitmap; public class Main { public static int sizeofBitmap(Bitmap value) { return value.getRowBytes() * value.getHeight(); } }