Intent intent = new Intent(getActivity(), Activity_Character.class);
intent.putExtra("mlTrait", (Serializable)getNormalTraits());
startActivity(intent);
List<Traits> getNormalTraits() {
if (normalTraits == null) {
normalTraits = new ArrayList<Traits>();
normalTraits.addAll(topTraits);
Traits primaryT = getTraitById(MyDBManater.primaryId);
normalTraits.remove(primaryT);
Traits remarksT = getTraitById(MyDBManater.remarksId);
normalTraits.remove(remarksT);
Traits spikeNumberT = getTraitById(MyDBManater.spikeNumberId);
normalTraits.remove(spikeNumberT);
}
return normalTraits;
}
第二个activity:
List<Traits> mlTraits = null;
mlTraits = (List<Traits>) getIntent().getSerializableExtra("mlTrait");