I want to start a other Activity and send a object from a class with one field by type ViewGroup.
Here the Class:
public class SerializableObject implements Serializable {
public ViewGroup parent;
public SerializableObject(ViewGroup parent){
this.parent = parent;
}
public ViewGroup getParent(){
return this.parent;
}
}
Here the call:
Intent i = new Intent(thisContext,CordovaViewer.class);
i.putExtra("KEY",obj);
cordova.getActivity().startActivity(i);
I get the Error :
Parcelable encountered IOException writing serializable object