1

to set data on text view from second activity to first activity and then again show that data on resume of second activity

view story
linux-howto

http://stackoverflow.com – second activity public void homeScreen() { Intent intent = new Intent(); intent.setClass(this, MainActivity.class); intent.putExtra("EXTRA_ID",fastingHourValue ); intent.putExtra("EXTRA_ID_NEW",getName ); startActivity(intent); System.out.println("going to first activity"); setResult(RESULT_OK, intent); finish(); } @Override public void onActivityResult(int requestCode,int resultCode,Intent data) { super.onActivityResult(requestCode, resultCode, data); String extraData=data.getStringExtra("EXTRA_ID"); String extraData2=data.getStringExtra("EXTRA_ID_NEW"); (HowTos)