March 2016
Intermediate to advanced
428 pages
9h 2m
English
The intent object is defined as a messaging object. As a message object, its purpose is to communicate with other components of the application. In this recipe, we'll show you how to pass information with the intent and how to get it out again.
This recipe will pick up from where the previous one ended. We will call this project SendData.
Since this recipe is building on the previous recipe, most of the work is already done. We'll add an EditText element to the main activity so that we have something to send to SecondActivity. We'll use the (autogenerated) TextView view to display the message. Here are the complete steps:
activity_main.xml, remove the existing <TextView> element, and ...Read now
Unlock full access