Here is my declaration
List lstProfilePicture = new ArrayList();
This is my code for calling another activity
Intent i = new Intent(LogoActivity.this, MenuActivity.class);
i.putExtra("Profile", (Serializable) lstProfilePicture);
This is my Profile Class
public class Profile implements Serializable {
private Long employeeCode;
private Bitmap employeePicture;
public Profile() {
}
public Profile(Long employeeCode, Bitmap employeePicture) {
this.employeeCode = employeeCode;
this.employeePicture = employeePicture;
}
public Long getEmployeeCode() {
return employeeCode;
}
public void setEmployeeCode(Long employeeCode) {
this.employeeCode = employeeCode;
}
public Bitmap getEmployeePicture() {
return employeePicture;
}
public void setEmployeePicture(Bitmap employeePicture) {
this.employeePicture = employeePicture;
}
}
Here is my error message
/AndroidRuntime: FATAL EXCEPTION: main Process: oras.liv.com.oras, PID: 21484 java.lang.RuntimeException: Parcelable encountered IOException writing serializable object
How to I pass with a bitmap in class? Is there another way?