How can I transfer data from one activity to another in Android?

Phương Linh

New member
How can I transfer data 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.
12 дек. 2019 г.
 

Tìm kiếm

Back
Top