In an application I am currently working on I have an Activity
populated with TextView derivatives inside a LinearLayout.I am
currently in a fix regarding proper handling of long clicks on the
same.

The context menu I create is showing correctly. However I am unable to
determine, from inside onContextItemSelected method, which View
actually triggered the event. I have a hunch that I need to do
something with theItem.getMenuInfo() [theItem is the MenuItem instance
passed to the method] but this happens to return null.

I am aware about how to do this by overriding ListActivity (as in the
Notepad tutorial). I, however, am looking for a method to do this from
within a _vanilla_ activity.

Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
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