Code example for ListView

Methods: getItemAtPosition

0
    } 
 
    @Override 
    @SuppressWarnings({ "unchecked", "UnusedParameters" }) 
    protected void onListItemClick(ListView l, View v, int position, long id) {
        Map<String, Object> map = (Map<String, Object>)l.getItemAtPosition(position);
 
        Intent intent = (Intent) map.get("intent");
        startActivity(intent);
    } 
}