+91-9990449935

 0120-4256464

Android Explicit Intent Example

Explicit intent specifies the component that is which class to be invoked. We can 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

activitytwo_main.xml

File: activitytwo_main.xml

ActivityOne class

File: MainActivityOne.java

ActivityTwo class

File: MainActivityTwo.java


Output:

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