I'm trying to get the bitmap that from SimpleDraweeView.
I already setted my SimpleDraweeView with uri image:
final Uri uri = new Uri.Builder()
.scheme(UriUtil.LOCAL_RESOURCE_SCHEME)
.path(returnUri.getPath())
.build();
profileImage.setImageURI(returnUri);
And now I'm trying to save the image in the memory (storage) of the phone.
Bitmap b = ((BitmapDrawable) profileImage.getDrawable()).getBitmap(); // ImageDiskHelper.drawableToBitmap(profileImage.getDrawable().get);
try {
ImageDiskHelper.saveToInternalStorage(b, "MyActualProfileImage");
} catch(Exception c){ }
But If I use the code above I get : com.facebook.drawee.generic.RootDrawable cannot be cast to android.graphics.drawable.BitmapDrawable
I convert profileImage.getDrawable to bitmap the image is like this: empty image
I'm trying to get the bitmap which is being displayed by the SimpleDraweeView