When you develop an android application, you always need to pass data between activities. And even more, you sometimes need to pass data between all activities for example pass session-id, user-name, and password. In this article, I will tell you how to use android Intent or Application object to pass data between activities.
This article will tell you how to pass custom type object via intent between two activities. It is not difficult, you just need to make your custom class either implement java.io.Serializable or android.os.Parcelable interface.
Intent is an important way to interact between components in an Android application. It can not only specify the actions that the current component wants to perform, but also transfer data between different components. An Intent can generally be used to launch activity, service and send broadcast.