title: Get Bitmap from ImageView in Android L
body: <p>I want to get <code>Bitmap</code> from <code>ImageView</code>. I have used following code, but <code>getDrawable()</code> returns null. How to get whole <code>Bitmap</code> from <code>ImageView</code>.</p>
  
  <pre><code>Bitmap bitmap;
  if (mImageViewer.getDrawable() instanceof BitmapDrawable) {
      bitmap = ((BitmapDrawable) mImageViewer.getDrawable()).getBitmap();
  } else {
      Drawable d = mImageViewer.getDrawable();
      bitmap = Bitmap.createBitmap(d.getIntrinsicWidth(), d.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);
      Canvas canvas = new Canvas(bitmap);
      d.draw(canvas);
  }
  storeImage(bitmap,"final.jpeg");
  </code></pre>