Duration: 25:57 min
Summary: In this lesson, we will see how to send data from one activity to another. In the main activity, the user will click a button to go to activity 2. There, the user will enter a password and click the done button. This will take us to the main activity where we will see what the user has entered. This is accomplished using intents and startActivityForResult method. In addition, we will need to override the onActivityResult method that will interrogate the request code and the result code to see what action took place. If the user clicked the back button instead, a toast will be displayed.