Bundles are generally used for passing data between various Android activities. It depends on you what type of values you want to pass, but bundles can hold all types of values and pass them to the new activity.
Likewise, people ask, what is the use of serialization in Android?
Serialization, on the other hand, is a Java interface that allows users to implement the interface which gets marked as Serializable. During the Android application development process, developers often have to send Java class objects from one activity to another activity using the intent.
What is serializing a class?
To serialize an object means to convert its state to a byte stream so that the byte stream can be reverted back into a copy of the object. A Java object is serializable if its class or any of its superclasses implements either the java.io.Serializable interface or its subinterface, java.io.Externalizable.
What is meant by marshalling and Unmarshalling in Java?
Garbagnati. Omar, In few words, "marshalling" refers to the process of converting the data or the objects inbto a byte-stream, and "unmarshalling" is the reverse process of converting the byte-stream beack to their original data or object. The conversion is achieved through "serialization".