[android-developers] ListActivity implements OnItemLongClickListener

2009-10-14 Thread Lee Jarvis
I'm attempting to implement a long click listener on a list activity that simply works the same way as when you long click on a contact in your address book. That is, displaying an AlertDialog with a list of options (one option might be to add the value clicked as a favorite or something). I've

[android-developers] ListActivity implements OnItemLongClickListener

2009-10-14 Thread Jason Proctor
yeah it would be great if the menu had a hidden field per item where you could stash an ID or something. seems not, but i suppose you could override the category or group ID etc. one thing you could do is have a map of menu texts back to your list views. when the onContextItemSelected() goes