>> Eg. should it be in
>> the View? I could make the decision when creating the menu too, but I
>> need to get a unique id from the row in the ListView
>> 
>>      public void onCreateContextMenu(ContextMenu menu, View v,
>> ContextMenuInfo menuInfo) {
> 
> Cast the menuInfo to an AdapterView.AdapterContextMenuInfo. You then
> have access to the position of the row within your result set, and the
> ID of the row (if you are using CursorAdapter or otherwise have row IDs).
Thank you this worked perfectly. I didn't think to look at this object...


> http://developer.android.com/resources/articles/touch-mode.html
Thank you for pointing me to this - it certainly makes sense now why it seemed 
there was no selection.

-- 
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

Reply via email to