List view row pressed
<p>I have a list view with couple of items and i set this function get call when a row in the list view is clicked.</p>

<p>I want to open new activity and send him an object from an array of objects.
I have a problem with this line :</p>

<pre><code>Intent i = new Intent(this, Item_Activity.class);
</code></pre>

<p>because the <code>this</code> is now no the activity.</p>

<p>this is the code:</p>

<pre><code>lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
         public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int position, long arg3) {
             Intent i = new Intent(this, Item_Activity.class);
             Item item = m_items.get(position);
             i.putExtra("object", item);
             startActivity(i);
         }

    });
</code></pre>
