[Solved] Integer cannot be cast to java.util.HashMap

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 datais defined as ArrayList<HashMap<String, String>> data; solved Integer … Read more