I want to pass a list of objects from one activity from another activity. I have one class SharedBooking Below:
public class SharedBooking {
You can also convert the list to a String using Gson, then pass it like so:
String yourListAsString = new Gson().toJson(yourList);
bundle.putString("data",yourListAsString);
Then retrieve it back using your class as the type:
List listName = new Gson().fromJson("data", new TypeToken>(){}.getType());