MVP (Model -View -Presenter) comes into the picture as an alternative to the traditional MVC (Model -View-Controller) architecture pattern. Using MVC as the software architecture, developers end up with the following difficulties:
Intent are asynchronous message which allows Android components to request functionality from other components of the Android system
In this tutorial. I will demonstrate how to pass the data forward and back from one Activity to another using Android Explicit Intent.
To pass the data we need to use putExtra() which has two parameters first is key and second value.
putExtra() : adds the extended data to Intent.
To retrieve data from Second Activity we need to use getIntent() and getExtra() methods which return the type of Bundle. …
Android Intent is a message that is passed between components such as activity, services, content provider, broadcast receiver etc.
it is generally used with startActivity() method to invoke activity, broadcast receiver etc.
The dictionary meaning of Intent is intention or purpose, so it can be described as intention to do action.
Intent are classified in two types Implicit and Explicit.
Implicit Intent doesn’t specify the component. …
Fragment is like the part of Activity. It is also know as a sub-activity. An Activity can display one or more on the screen at the same time. Fragments represent multiple screen in one Activity.
Each Fragment has its own lifecycle that is affected by Activity lifecycle methods because fragments are embedded in Activity.
You can add or remove Fragment while the Activity is running. Fragment was added in Android API level 11 which is Honeycomb version.
Fragment Manager class is responsible to make interaction between fragment objects.
Fragment has 12 lifecycle method :
Android Activity is an application component which creates a default window on screen, where we can place different components such as button, text view, spinner etc.
User launched the app (activity…