Thanks anyway.

Answer was in NotesList example ...

hopefully this will save someone else's forehead/desktop ...

http://code.google.com/android/samples/NotePad/src/com/example/android/notepad/NotesList.html


On Feb 21, 1:11 pm, robotissues <[email protected]> wrote:
> I am unsure that made any sense - brain is a bit super saturated with
> code at the moment.  Let me rephrase ...
>
> I have a ListActivity.  When I short click on a list item, I get the
> position via onListItemClick event.  When I long click on the same
> spot, the context menu comes up.  The thing is that there is no info
> on the position.  I would like to get the selected item without
> requiring the user to short click and then long click.  I have seen
> this functionality in Android apps, so I may be missing something
> obvious.  Help appreciated none the less.
>
> Thanks!
>
> On Feb 21, 12:54 pm, robotissues <[email protected]> wrote:
>
> > I would need to determine the position of the item where the
> > ContextMenu was triggered from.  Can this be done?  If so, how.  I can
> > single click then long click ... but this feels like an extra step.
> > Advice appreciated.
--~--~---------~--~----~------------~-------~--~----~
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