Perhaps I did not phrase my question correctly - I have an Activity
with, say, a LinearLayout, populated with, say, TextViews. I wish to
handle long clicks on those views.

I tried overriding onContextItemSelected(MenuItem theItem) but I am
unable to figure out, from within the method, which view triggered the
long click. theItem.getMenuInfo() seems to return null.

Specifically I have the feeling that I need to package some
information inside the menuInfo object in the
onCreateContextMenu(ContextMenu menu, View v,
ContextMenu.ContextMenuInfo menuInfo) I have overridden. But how? The
class is empty!

-- 
Sanjoy Das

[ http://www.playingwithpointers.com ]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to