Extending HelloGallery tutorial. Click on Image and pass the image to another activity/page
<p>I am very new to Android (and Java) originally a C# developer.. and am struggling with the concepts and terminology.
I have been through almost all the tutorials and have decided to start on my first test app.</p>

<p>The first part of my app is going to involve using the gallery widget (based on the <a href="http://developer.android.com/resources/tutorials/views/hello-gallery.html" rel="nofollow">hello gallery tutorial</a>) to display a load of images. (these images will eventually come from the phones camera, but I will cross that bridge later!) 
My images are currently stored in the drawable folder in my project.</p>

<p>As a first step I want to just have the user click on an image and it pops up full screen, just so I know how to get reference to it, but I am struggling. Evetually I want the user to click an image, then a window/activity(?) will open asking them for a bit of text. This will then be store in sqllite against the image.</p>

<p>So far I have two classes:
Class1 &amp; OpenImage. Class1 one contains the ImageAdapter class similar to the HelloGallery tutorial.. I am adding an onclick listener in the "getView" as follows:</p>

<pre><code>public View getView(final int position, View convertView, ViewGroup parent) {
        ImageView i = new ImageView(mContext);

        i.setImageResource(mImageIds[position]);
        i.setLayoutParams(new Gallery.LayoutParams(150, 100));
        i.setScaleType(ImageView.ScaleType.FIT_XY);
        i.setBackgroundResource(mGalleryItemBackground);

        i.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {                    
                    Intent i = new Intent(Class1.this, OpenImage.class);
                    startActivity(i);
                    finish();                    
            }
          });     

        return i;
    }
</code></pre>

<p>The part I am struggling with is opening my OpenImage and getting it to show the image.</p>

<p>Firstly I'm not actually sure what I need to pass and how I do it, then how I get it on the OpenImage page/activity.</p>

<p>I am not even sure of the terminology of what I'm trying to do so I am also finding it hard to research. Am I opening a new activity when I am opening the fullscreen image? or should it be some sort of pop up?</p>

<p>This seems like the simplest thing to do but I'm falling at the first hurdle.
Can someone give me some guidance?</p>

<p>Thanks Bex</p>
