summaryrefslogtreecommitdiffstats
path: root/Android/02-Intents/IntentsLab/src/course/labs/intentslab/ExplicitlyLoadedActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'Android/02-Intents/IntentsLab/src/course/labs/intentslab/ExplicitlyLoadedActivity.java')
-rw-r--r--Android/02-Intents/IntentsLab/src/course/labs/intentslab/ExplicitlyLoadedActivity.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/Android/02-Intents/IntentsLab/src/course/labs/intentslab/ExplicitlyLoadedActivity.java b/Android/02-Intents/IntentsLab/src/course/labs/intentslab/ExplicitlyLoadedActivity.java
index 5c33228..80c19f8 100644
--- a/Android/02-Intents/IntentsLab/src/course/labs/intentslab/ExplicitlyLoadedActivity.java
+++ b/Android/02-Intents/IntentsLab/src/course/labs/intentslab/ExplicitlyLoadedActivity.java
@@ -39,9 +39,9 @@ public class ExplicitlyLoadedActivity extends Activity {
// Sets result to send back to calling Activity and finishes
private void enterClicked() {
Log.i(TAG,"Entered enterClicked()");
- // TODO - Save user provided input from the EditText field
- // TODO - Create a new intent and save the input from the EditText field as an extra
- // TODO - Set Activity's result with result code RESULT_OK
- // TODO - Finish the Activity
+ Intent intent = new Intent();
+ intent.putExtra("data", mEditText.getText().toString());
+ setResult(RESULT_OK, intent);
+ finish();
}
}