If you just want to transfer data from one activity to another, you can simply use the static variable available from both actions. This eliminates the need for serialization and deserialization of all objects. Example:
public class Globals { public static List<MyObject> myObjects; }
In one action, you can set the data that you want to convey in Globals.myObjects , and receiving activity can get out of there.
Remember that this mechanism has some disadvantages (for example, when Android kills your process and restarts it later). However, this may be the least difficult way to simply transfer many objects from one activity to another.
source share