Inside ActivityA, if you want to start another action, follow these steps:
Intent intent = new Intent(this, Activity.B);
intent.putExtra("string", editText.getText().toString();
startActivity(intent);
and in ActivityB onCreate () you are doing something like
textView.setText(getIntent().getExtras().getString("string"));
source
share