onCreateContextMenu() should be called before the context menu is
displayed.. so this would be the place to set whatever you want to
set.

Peli
www.openintents.org

On Jul 17, 4:28 pm, Georgios Galyfos <[email protected]> wrote:
> Hi,
>
> I am using openContextMenu() when someone clicks on an item of a list (not
> when they long press as usual). The context menu does appear, however, it
> shows the context menu for the last item that the context menu had appeared.
> For example, if I long press the item C of the list then the context menu
> for item C appears, and later if I click on item B, with openContextMenu()
> the context menu for item C will again appear, not for B that I was
> expecting.
>
> How can I set the current item for which the context menu will appear to be
> the item of the list the user clicks on? I do have the position from
> onListItemClick() and I was trying to find a call like setContextMenuItem()
> or something, but I can't find anything
>
> Any help would be appreciated!!!
>
> Thanks in advance!!
--~--~---------~--~----~------------~-------~--~----~
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