Add code to the event handler in MainActivity that (a) creates an
Intent object, (b) adds the String
message to it as extra text, (c) starts a new activity using the intent. (Recall that the purpose
of an intent is to start up a new activity.) Here is the Java source code to add to the
onClick event handler:
Intent intent = new Intent(this, ReceiveMessageActivity.class);
// For the extra information in the intent,
// the key is "message; the value is message.
intent.putExtra("message", message);
startActivity(intent);