I have an entity class User
. I read the posts here and here suggesting that passing ArrayLists
of this entity class between intents is a bad idea.
However, if I had a class UserCohort
with the following data members:
public class UserCohort {
private String cohortName;
private ArrayList<User> usersList;
}
and implemented Parcelable
on this, does that make it any more acceptable to pass the Entity
class around? Or is this a sleight-of-hand?