listview lazyadapter
问题 I like to pass selected item value from ListView to another activity. I am using this code to get the details associated with the hashmap but I get java.lang.Integer cannot be cast to java.util.HashMap . public void onItemClick(AdapterView<?> parent, View view, int position, long id) { HashMap<String, String> o = (HashMap<String, String>) list.getItemAtPosition(position); Toast.makeText(CustomizedListView.this, "ID '" + o.get("KEY_TITLE") + "' was clicked.", Toast.LENGTH_SHORT).show(); } How