Bashboard.java
Intent i = new Intent(this, NewAccount.class);
startActivityForResult(i, 0);
onActivityResult(......){
if(data!=null){
Bundle bundle=data.getExtras();
.........
}
}
NewAccount.java
Bundle bundle = new Bundle();
bundle.putString("returnStatus", action);
Intent mIntent = new Intent();
mIntent.putExtras(bundle);
setResult(RESULT_OK, mIntent);
finish();
Intent i = new Intent(this, NewAccount.class);
startActivityForResult(i, 0);
onActivityResult(......){
if(data!=null){
Bundle bundle=data.getExtras();
.........
}
}
NewAccount.java
Bundle bundle = new Bundle();
bundle.putString("returnStatus", action);
Intent mIntent = new Intent();
mIntent.putExtras(bundle);
setResult(RESULT_OK, mIntent);
finish();