unable to send data , from one activity to another
Asked
Active
Viewed 40 times
-2
-
you have multiple options like intent, shared preference – Aniruddha K.M Oct 06 '15 at 10:47
1 Answers
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