1

Getting text from list using Context Menu

view story
linux-howto

http://stackoverflow.com – I've been trying to get text from a row on my list using context menu. So far I was able to get the text back which was name using the id from my row.xml file. But when I select another row on my list it will get the same name back contained in the first row of the list and not the one I selected. public boolean onContextItemSelected(MenuItem item) { AdapterContextMenuInfo info = (AdapterContextMenuInfo)item.getMenuInfo(); if(item.getTitle()=="Get") { TextView textView = (TextView) this.findViewById(R.id.names); String text = textView.getText().toString(); (HowTos)