I\'m new to android. I want to pass bitmap into Bundle. But I can\'t find any solution for it. Actually, I\'m confused. I want to display an image in a Dialog fragment. But I do
No need to convert bitmap to byte array. You can directly put bitmap into bundle. Refer following code to put bitmap into bundle.
bundle.putParcelable("BitmapImage",bitmapname);
Get bitmap from Bundle by following code
Bitmap bitmapimage = getIntent().getExtras().getParcelable("BitmapImage");