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

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, 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();

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: