Activity A:
pass data to activity B
Intent i = new Intent(getApplicationContext,ActivityB.class);
i.putExtra("DataA",dataA);
i.startActivity(i);
retrive data in ActvityB
String a;
Intent i = getIntent();
a= i.getStringExtra("DataA");
pass data in actvityc from ActivityB
Intent i = new Intent(getApplicationContext,ActivityC.class);
i.putExtra("DataA",a);
i.putExtra("DataB",b);
i.startActivity(i);
retrive data in ActvityC
String a,b;
Intent i = getIntent();
a= i.getStringExtra("DataA");
b= i.getStringExtra("DataB");
solved Passing data and add other data to it and pass it again [duplicate]