Give an example of code in which an event handler in a Button one Activity would change a TextView in another Activity .
Here is my handler:
String data = "This is the best day"; @Override public void onClick(View view) { Intent intent; switch (view.getId()) { case R.id.button: intent = new Intent(this, Main2Activity.class); intent.putExtra("man", data.toString()); startActivity(intent); break; } }}