public class MarkerList{ public MarkerList(int capacity) { super(capacity); } public MarkerList() { } public MarkerList(Collection collection) { super(collection); } ArrayList<String> lat=new ArrayList<>(); ArrayList<String> lng=new ArrayList<>(); ArrayList<String> name=new ArrayList<>(); ArrayList<String> type_2=new ArrayList<>();//Type_2 public int getSize(){ return name.size(); } public ArrayList<String> getLat() { return lat; } public void setLat(ArrayList<String> lat) { this.lat = lat; } public ArrayList<String> getLng() { return lng; } public void setLng(ArrayList<String> lng) { this.lng = lng; } public ArrayList<String> getName() { return name; } public void setName(ArrayList<String> name) { this.name = name; } public ArrayList<String> getType_2() { return type_2; } public void setType_2(ArrayList<String> type_2) { this.type_2 = type_2; } }
I have this class. I can not transfer via PutExtras. Tell me how to pass my class?
Parcelable
- Vladyslav Matviienko pm