I know that there are 2 ways to do this, Parcelable and Serializable. Another method (a bad one) is static variables.
An entry of that list can be instance of class A or class B.
I tried passing the list using Parcelable and Serializable with no success, since the class Object doesn't implement anything.
// When setting:
List<Object> liveMatchList = DataCenter.getMatchesByDate(context, date,
tIdsAsString, true);
intent.putExtra("SER", liveMatchList);
// When getting:
List<Object> matchesList = (List<Object>)intent.getSerializableExtra("SER");
How to do this please?