title: Passing image from one activity another activity
body: <p>There are similar questions on SO, but none worked for me.</p>
  
  <p>I want to fetch clicked image in Activity1 and display it in Activity2.<br>I'm fetching image id of clicked image like this:</p>
  
  <pre><code>((ImageView) v).getId()
  </code></pre>
  
  <p>and passing it through intent to another activity.</p>
  
  <p>In 2nd activity, I use image id as following:</p>
  
  <pre><code>imageView.setImageResource(imgId);
  </code></pre>
  
  <p>I logged the value og image id in both the activities and it's same.</p>
  
  <p>But I'm getting following exception:</p>
  
  <pre><code>android.content.res.Resources$NotFoundException: Resource is not a Drawable 
  (color or path): TypedValue{t=0x12/d=0x0 a=2 r=0x7f050000}
  </code></pre>
  
  <p>I guess the problem here is <code>getId()</code> is returning Id of <code>ImageView</code> and <strong>not of it's source image</strong>.<br>
  All these images are present in <code>drawable</code>.</p>
  
  <p>Any help appreciated.</p>