use startActivityForResult and onActivityResult methods to get the
activity's result.