I need to take a photo then upload the photo to server. Something gets weird, because when I startActivityForResult as below, onActivityResult is just called immediately, I need it to be called when I done talking photos. Is it because my Activity is going to destroyed? What should I do? Thanks!
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, REQUEST_CODE_CROP_PHOTO);
The right answer is
android:launchMode="standard"
Thank Petrus.