Intent intent = new Intent(this,AnotherClass.class);
intent.putExtra("Name", "foo");
setResult(RESULT_OK, null);
super.onActivityResult(requestCode, resultCode, data);
switch (requestCode) {
case (1): {
TextView textView = (TextView) findViewById(R.id.TextView01);
if (resultCode == Activity.RESULT_OK) {
textView.setText("Data" + data.getStringExtra("Name"));
}
What am I doing wrong?