with
startActivityForResult(intent, 100); 2) User is taken to ComposeActivity 3) User does some stuff in ComposeActivity, and then closes ComposeActivity. Intent intent = new Intent(); intent.putExtra("newTweet", "A Tweet!"); setResult(RESULT_OK, intent); finish(); // closes the activity, pass data to parent 4) MainActivity’s onActivityResult() is called immediately when the user returns @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode == RESULT_OK && requestCode == 100) { String newTweetToInsert = data.getExtras().getString("newTweet"); } }