context menu not working
<p>Hey guys I was looking at the 'Diaro' and the 'my Diary' app available on the Android market.
The items get displayed in a list view, and on long clicking an item, a context menu with various options(like edit, delete etc ) open up. I tried implementing the same in my app which is some what similar. But the problem is in the <code>onContextItemSelected(MenuItem item)</code> I can't get the contents of the item clicked. Here's the code for <code>onContextItemSelected(MenuItem item)</code>:</p>

<pre><code>@Override
public boolean onContextItemSelected(MenuItem item) {
    // TODO Auto-generated method stub
    AdapterContextMenuInfo info = (AdapterContextMenuInfo) item
            .getMenuInfo();
    switch (item.getItemId()) {
    case R.id.edit:


        break;v

          // rest of the codetion
    }

    return super.onContextItemSelected(item);
}
</code></pre>

<p>Can somebody tell me as to how can I get the id of the item clicked on the list view from this fuction?I can really use some help here:) </p>
