Javatpoint Logo
Javatpoint Logo

Android Explicit Intent Example

Android Explicit intent specifies the component to be invoked from activity. In other words, we can call another activity in android by explicit intent.

We can also pass the information from one activity to another using explicit intent.

Here, we are going to see an example to call one activity from another and vice-versa.

Android calling one activity from another activity example

Let's see the simple example of android explicit example that calls one activity from another and vice versa.

activity_main.xml

File: activity_main.xml

ActivityOne class

File: MainActivityOne.java

activitytwo_main.xml

File: activitytwo_main.xml

ActivityTwo class

File: MainActivityTwo.java

Output:

android explicit intent example output 1 android explicit intent example output 2 android explicit intent example output 3






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA