I have a listview that is populated using the JSONArray. Then I added the context menu to my List.
Now I want to retrieve the values of the listitems on which the user selected ,so I used
AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();
Object object= list.getItemAtPosition(info.position);
now the problem is that getItemAtPosition() returns an Object . How Can I convert it into the relative JSONOBject?
And no need for gson library here, since JSON is part from Android library
org.json.JSONObjectsince Api 1.