this is previous code on my custom adapter:
@Override
public Object getItem(int position) {
// TODO Auto-generated method stub
return (position);
}
and this is solved code in my custom adapter:
@Override
public Object getItem(int position) {
// TODO Auto-generated method stub
return data.get(position);
}
in which data
is defined as ArrayList<HashMap<String, String>> data;
solved Integer cannot be cast to java.util.HashMap