How to pass image data from one activity to another activity?
<p>I am using two activities. One activity displays images in a <code>GridView</code> and by clicking on a particular image in that <code>GridView</code> it should display the full screen image in another activity.</p>

<p>How can I achieve this?</p>

<p>My MyGridView.java </p>

<pre><code>mGridView.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView&lt;?&gt; parent, View v, int position,long id) {
    // TODO Auto-generated method stub
    Toast.makeText(getApplicationContext(), "Image"+(position+1),Toast.LENGTH_SHORT).show();
    System.out.println(id);
    Intent i = new Intent(this, MyImageViewActivity.class);
    Bundle bundle = new Bundle();
    bundle.putInt("image", position);
    i.putExtras(bundle);
    startActivityForResult(i, 0);
}
});
</code></pre>
