Create Note: Intent i = new Intent(this, NoteEdit.class); startActivityForResult(i, ACTIVITY_CREATE); NoteEdit onClick: // When NoteEdit finishes, it pass back the results // using a bundle to contain the information // The bundle could be put as extra in intent directly Bundle bundle = new Bundle(); bundle.putString(NotesDbAdapter.KEY_TITLE, mTitleText.getText().toString()); bundle.putString(NotesDbAdapter.KEY_BODY, mBodyText.getText().toString()); if (mRowId != null) { bundle.putLong(NotesDbAdapter.KEY_ROWID, mRowId); } Intent mIntent = new Intent(); mIntent.putExtras(bundle); // When the intent is ready, set the result and // call finish() to finish the current activity setResult(RESULT_OK, mIntent); finish(); onListItemClick: Intent i = new Intent(this, NoteEdit.class); // Extra information are inserted as pairs in extra i.putExtra(NotesDbAdapter.KEY_ROWID, id); i.putExtra(NotesDbAdapter.KEY_TITLE, c.getString( c.getColumnIndexOrThrow(NotesDbAdapter.KEY_TITLE))); i.putExtra(NotesDbAdapter.KEY_BODY, c.getString( c.getColumnIndexOrThrow(NotesDbAdapter.KEY_BODY))); startActivityForResult(i, ACTIVITY_EDIT);