I have ArrayList Of Custom Objects
ArrayList<AvailableCountry>
listAvailableCountries = new ArrayList();
and I have two objects of AvailableCountry
AvailableCountry obj1=new AvailableCountry();
AvailableCountry obj2=new AvailableCountry();
Then i have added to arraylist
listAvailableCountries.add(obj1);
listAvailableCountries.add(obj2);
And this is Class of Custom Object
public class AvailableCountry {
@SerializedName("Disabled")
@Expose
private Boolean disabled;
@SerializedName("Selected")
@Expose
private Boolean selected;
@SerializedName("Text")
@Expose
private String text;
@SerializedName("Value")
@Expose
private String value;
public Boolean getDisabled() {
return disabled;
}
public void setDisabled(Boolean disabled) {
this.disabled = disabled;
}
public Boolean getSelected() {
return selected;
}
public void setSelected(Boolean selected) {
this.selected = selected;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}
Now i want to pass this arraylist From Activity A to Activity B. and then i want to receive in Activity B. how can i achieve this task.