Hi All,
  I have two listviews in my activity and I am using two adapters to
populate them.The list items are customized.
I have implemented onClick listener on the list item and it works
fine. Next what I want to  try is: on long press on the list item I
should be able to display the menu(ContextMenu) and depending on the
selection I should be able to Edit or delete the items. So to do that
I created the context menus in the listitem and registered them to in
the main activity. I get the menu but onContextItemSelected(MenuItem
item) method the menuitem is null. So not able to get any information
on the which item is selected.
Can anybody tell me why this is happening or am I doing something
wrong.
Thanks in advance.
Laxmi

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to