Last active
December 23, 2020 08:43
-
-
Save goliver79/8873736 to your computer and use it in GitHub Desktop.
[ANDROID] Start new Activity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void sendMessage(View view) { | |
Intent intent = new Intent(FirstActivity.this, SecondActivity.class); | |
EditText editText = (EditText) findViewById(R.id.edit_message); | |
String message = editText.getText().toString(); | |
intent.putExtra(EXTRA_MESSAGE, message); | |
startActivity(intent); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment