This is my class:
public class Asset extends BaseModel implements Serializable{...}
and on an Activity I have this:
private void openAssignAssetIntent(String actionType){
Intent assignAssetIntent = new Intent(this,AssignAssetActivity.class);
assignAssetIntent.putExtra("currentAsset",currentAsset);
startActivity(assignAssetIntent);
}
and I am trying to get this value("currentAsset") from another Activity like this:
Asset asst = (Asset) getIntent().getSerializableExtra("currentAsset");
But I am getting this exception:
java.lang.RuntimeException: Parcelable encountered IOException writing serializable object
What am I doing wrong?