Use the startActivityForResult(i, REQUEST_CODE) instead of startActivity to makesave edited text work