91-9990449935 0120-4256464 |
Android Explicit Intent ExampleAndroid 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 exampleLet's see the simple example of android explicit example that calls one activity from another and vice versa. activity_main.xmlFile: activity_main.xml
activitytwo_main.xmlFile: activitytwo_main.xml
ActivityOne classFile: MainActivityOne.java
ActivityTwo classFile: MainActivityTwo.java
Output:
Next TopicAndroid StartactivityForResult Example
|