The OnItemClickListener is used to listen to clicks on the ListView,
not in a context menu. There is another callback to override to
respond to clicks in a context menu:
Activity.onContextItemSelected(MenuItem)

On Tue, Sep 9, 2008 at 3:19 PM, Mark Hansen <[EMAIL PROTECTED]> wrote:
>
> Yea I tried both of those, neither seem to return the position on the
> ListView.
>
> It appears onListItemClick is never called when I when I'm creating my
> ContextMenu.
>
>
>
>
> On Sep 9, 5:59 pm, "Mark Murphy" <[EMAIL PROTECTED]> wrote:
>> > In other words, the user holds down on the ListView which spawns the
>> > ContextMenu, but the value for the ListView position is not present?
>>
>> If this is a ListActivity, you could try getSelectedItemId() or
>> getSelectedPosition().
>>
>> --
>> Mark Murphy (a Commons Guy)http://commonsware.com
>> _The Busy Coder's Guide to Android Development_ Version 1.2 Published!
> >
>



-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
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