Hi,
I have created an application for Android that has an activity that has a ListView which lists all current users (each row is just an image of their profile along with some text with their current status and username).
I have added a contextmenu, so that a long-click brings up several options such as "view profile", "send message", etc.
In the ContextMenu handler, how can I extract information to know which user the context menu has been clicked for (for example, if i select userX and then selected "view profile" then it would need to be able to retrieve the userX object and load the profile)
As the row currently only has descriptive text set, would i need to also embed some other hidden user ID or something? any thoughts on how i could set/retrieve such data?
Thanks