I have hashtbles in array list.
List> info = new ArrayList>();
Hashtable<
Create a class that extends Serializable with getter setter for the List
Custom.java
public class Custom implements Serializable{
private static final long serialVersionUID = 4466821913603037341L;
private List> list;
public List> getList() {
return list;
}
public void setList(List> list) {
this.list = list;
}
}
To pass to next Activity.
List> list = new ArrayList>();
Custom custom = new Custom();
custom.setList(list);
intent.putExtra("myobj", custom);
To retrieve in next Activity
Intent intent = getIntent();
Custom custom = (Custom) intent.getSerializableExtra("myobj");
List> list = custom.getList();