Android Build an Interactive Story App Intents and Multiple Activities Getting Text from an EditText

Caleb Seeling
Caleb Seeling
1,189 Points

Still cant solve question!

Please help me solve, because I do not understand the question or how to solve it!

CodeChallenge.java
EditText petNameField = (EditText)findViewById(R.id.petNameField);
String petName;

1 Answer

EditText petNameField = (EditText)findViewById(R.id.petNameField);
String petName = petNameField.getText().toString();