BitmapDrawable homeFolderIconBitmapDrawable = (BitmapDrawable) homeFolderIconDrawable;
Bitmap homeFolderIconBitmap = homeFolderIconBitmapDrawable.getBitmap();
// Convert the folder `Bitmap` to a byte array. `0` is for lossless compression (the only option for a PNG).
BitmapDrawable homeFolderIconBitmapDrawable = (BitmapDrawable) homeFolderIconDrawable;
Bitmap homeFolderIconBitmap = homeFolderIconBitmapDrawable.getBitmap();
// Convert the folder `Bitmap` to a byte array. `0` is for lossless compression (the only option for a PNG).