I referred to this SO question which suggested getting a Bitmap from an ImageView by just doing this :
Bitmap bitmap = ((BitmapDrawable)image.getDrawable()).getBitmap();
The problem I am facing is, when I first set the background of an ImageView, followed by src and then using the suggested solution, I only get the bitmap as the src image. It didn't contained the background part of that ImageView. What am I missing here?
 
     
     
     
    