public void NavigateToBack (View view) {String Name = getIntent().getStringExtra("Name");
Intent obj = getIntent().putExtra("result", Name +" You just received a Message from Another Activity");
setResult(RESULT_OK, obj);
finish();}

I hope that it was informative for you and I would like to Thank you for reading.