There are two ways to pass Java objects in Android intent: first, by calling the Putserializable (Key,object) method of the Bundle object " See Example ", The other is by calling the Putparcelable (Key,object) method of the Bundle object " See Example ".
The first method requires the delivery of the Java object implementation serializable interface--serializable interface is javase specific interface, using this method to implement the serialization of the class is very simple, declare that the system will automatically serialize it.
The second method requires that the passed Java object implement the Parcelable interface--parcelable interface is an Android-specific interface, Using this method is better than implementing the serializable interface to achieve the serialization efficiency of the class (using the Serializable interface to achieve serialization will produce a large number of temporary variables, resulting in frequent GC), But the implementation of the Parcelable interface is more complex than the implementation of the serializable interface, if the single efficiency is recommended to implement the Parcelable interface method.
Ways to pass Java objects intent in Android