which is the use of position and name in putextra?
<p>How do I use <code>.get[position]</code> and <code>name</code> in <code>.putextra</code> in Android, and how can I use <code>position</code> in <code>putextra</code> using an array?</p>

<pre><code>ainListView = (ListView) findViewById( R.id.mainListView );
mainListView.setOnItemClickListener(new OnItemClickListener() {
    int[] myImageList = new int[]{R.drawable.koala_copy, R.drawable.lighthouse_copy};

    public void onItemClick(AdapterView&lt;?&gt; parent, View view, int pos,
                            long id) {
        Intent b = new Intent(SimpleListViewActivity.this, Nextclass.class);
        b.putExtra("Name", myImageList.get[position]);
        b.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        finish();
        startActivity(b);
    }

    private ArrayAdapter&lt;String&gt; getListAdapter() {
        // TODO Auto-generated method stub
        return null; 
    }


});
</code></pre>
