Android: Clicking children individually within a GridView
<p>This is in the initial Activity when my app starts up. The gridview contains six click able icons that i want to all go to different activities. I have aboslutely no problem starting up a new activity for another thing to do in my app. I created one activity just to work with initially, a 'contact us' form. I want only one of these icons to go to that activity, however i can't find a way to make it so the onItemClickListener callback registers individual clicks for each icon and launches the appropriate activity; currently, no matter which icon i click, they all go to the same activity. See below for my code:</p>

<pre><code>    GridView gridview = (GridView) findViewById(R.id.gridview);
    gridview.setAdapter(new ImageAdapter(this));


    gridview.setOnItemClickListener(new OnItemClickListener() 
    {
        public void onItemClick(AdapterView&lt;?&gt; parent, View v, int position, long id) 
        {

             Intent myIntent = new Intent();
             myIntent.setClassName("com.beneast.main", "com.beneast.main.ContactUs");
             startActivity(myIntent);
            };
    });
</code></pre>

<p>I am a bit of a noob at doing this as you can plainly see, this app is getting developed as i learn more stuff. But thanks for any help.</p>
