I have a problem passing an arraylist of complex object between 2 activity, the object (ObjA) is something like this:
ObjA:
-String
-Array of ObjB
where ObjB is:
ObjB:
-String
-Array of ObjC
where ObjC is:
ObjC:
-String
-String
the 3 object are serializable:
public class Obj implements Serializable{
private static final long serialVersionUID = 1L;
}
I try to pass the object as a normal extras but the app crash without any log, how can I pass this array?
The 3 obj are serialazible, they have this form: public class Materia implements Serializable{
private static final long serialVersionUID = 1L;
String titolo;
String icona;
ArrayList<Sezione> sezioni;
public Materia (){}
public String getTitolo() {
return titolo;
}
public void setTitolo(String titolo) {
this.titolo = titolo;
}
public String getIcona() {
return icona;
}
public void setIcona(String icona) {
this.icona = icona;
}
public ArrayList<Sezione> getSezioni() {
return sezioni;
}
public void setSezioni(ArrayList<Sezione> sezioni) {
this.sezioni = sezioni;
}
}