Android Best way to convert byte array to Bitmap?
===

I know why OutOfMemoryError Exception occurs.But there are any best way to convert byte array to Bitmap.And I used below code ,But when large byte it force close app and gives OutOfMemoryError Exception.

And i have API it just send me byte array nothing else.

    Bitmap bmp = BitmapFactory.decodeByteArray(bytearray, 0, bytearray.length);