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
ActivityOne classFile: MainActivityOne.java
activitytwo_main.xmlFile: activitytwo_main.xml
ActivityTwo classFile: MainActivityTwo.java
Output:![]() ![]() ![]()
Next TopicAndroid StartactivityForResult Example
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week