How do I pass a value from one activity to another in Android?

How do I pass a value from one activity to another in Android?
Answer
These operations are as follows:
  1. first Add the listener on send button and this button will send the data. …
  2. Now create the String type variable for store the value of EditText which is input by user. …
  3. Now create the Intent object First_activity. …
  4. Put the value in putExtra method in key value pair then start the activity.
 

Tìm kiếm

Back
Top