Question: =+To obtain the data sent using the Intent object, you first obtain the Intent object using the getIntent() method. Then, call its getStringExtra() method to
=+To obtain the data sent using the Intent object, you first obtain the Intent object using the getIntent() method. Then, call its getStringExtra() method to get the string value set using the putExtra() method:
//---get the data passed in using getStringExtra()---
Toast.makeText(this,getIntent().getStringExtra("str1"), Toast.LENGTH_SHORT).show();
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
