-2

unable to send data , from one activity to another

Tara Uppin
  • 61
  • 1
  • 9

1 Answers1

2

in your current activity, create an intent

Intent i = new Intent(getApplicationContext(), ActivityB.class);
i.putExtra("name", value);
startActivity(i);

then in the other activity, retrieve those values.

Intent intent = getIntent(); 
String name= intent.getStringExtra("name","");
Nouran S. Ahmad
  • 503
  • 1
  • 5
  • 19