Translations:Android Training/Starting Another Activity/8/en
At the top of the file, import the EditText
class. In Android Studio, press Alt + Enter (option + return on Mac) to import missing classes.
- Assign the text to a local
message
variable, and use theputExtra()
method to add its text value to the intent.