-8

In one Activity, I enter the details like name,etc. into Edittexts. Now how do i pass these Strings to the other activity. The string values entered will vary from user to user.

1 Answers1

0
Intent i = new Intent(youractivityfrom.this,
                        youractivityto.class);
                i.putExtra("key1", value);
                i.putExtra("key2", value);
                startActivity(i);
Suraj
  • 737
  • 6
  • 21
Madhu
  • 1,780
  • 23
  • 47
  • This is if I have just one value.Suppose I am using this app and in the text field i enter my name. Now how do i put my name into the value field without manually entering my name into the value field. If u are using the app, then ur name should be passed . – Adam Nathan Jun 25 '15 at 05:31
  • I dint get you what you are trying to say exactly, save your typed value into string then pass it with intent you can pass any number of value using intent – Madhu Jun 25 '15 at 05:33