Question: =+To get the individual name/value pairs, use the appropriate method. For the string value, use the getString() method: //---get the data using the getString()--- Toast.makeText(this,

=+To get the individual name/value pairs, use the appropriate method. For the string value, use the getString() method:

//---get the data using the getString()---

Toast.makeText(this, bundle.getString("str2"), Toast.LENGTH_SHORT).show();

Likewise, use the getInt() method to retrieve an integer value:

//---get the data using the getInt() method---

Toast.makeText(this,Integer.toString(bundle.getInt("age2")), Toast.LENGTH_SHORT).show();

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!