fix a bug:
onActivityResult does not deal wity the resultCode