Pass Data between Activities using intent (Java) - Android Studio Tutorial
Description In this tutorial i'll show you how to pass data between different activities using intent. For Example in this tutorial Activity 1: Input data using EditText and click Save Button to start second activity with the data that was input. Activity 2: Show the input data of previous activity using Intent. Video Source Code Step 1: Create a new project OR Open your project Step 2: Create New Activity File>New>Activity>EmptyActivity Step 3: Code activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:app= "http://schemas.android.com/apk/res-auto" xmlns:tools= "http://schemas.android.com/tools" android:layout_width= "match_parent" android:layout_height= "match_parent" tools:context= ".MainActivity" android:orientation= "vertical" ...