Here you can find the source of unFlattenBitmap(byte[] bitmapData)
public static Bitmap unFlattenBitmap(byte[] bitmapData)
//package com.java2s; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap unFlattenBitmap(byte[] bitmapData) { Bitmap bitmap = null;//w ww.j ava 2 s. c o m if (bitmapData != null && bitmapData.length > 0) { bitmap = BitmapFactory.decodeByteArray(bitmapData, 0, bitmapData.length); } return bitmap; } }