Code example for SimpleAdapter

Methods: notifyDataSetChanged, getItem

0
				 
				// Getting adapter of the listview 
				SimpleAdapter adapter = (SimpleAdapter ) mListView.getAdapter();
				 
				// Getting the hashmap object at the specified position of the listview 
				HashMap<String, Object> hm = (HashMap<String, Object>) adapter.getItem(position);	
				 
				// Overwriting the existing path in the adapter  
				hm.put("flag",path);
				 
				// Noticing listview about the dataset changes 
				adapter.notifyDataSetChanged();	
			} 
	    } 
    } 
 
}