Question: =+While this application is not visually exciting, it does illustrate some important ways to pass data between activities. First, you can use the putExtra() method

=+While this application is not visually exciting, it does illustrate some important ways to pass data between activities.

First, you can use the putExtra() method of an Intent object to add a name/value pair:

//---use putExtra() to add new name/value pairs---

i.putExtra("str1", "This is a string");

i.putExtra("age1", 25);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Implementing Programming Languages Questions!