I am having two Activities (A1 , A2). A1 calls A2 and from A2 i am calling the camera intent as below
launchIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
launchIntent.putExtra(MediaStore.EXTRA_OUTPUT,photoPath);
startActivityForResult(launchIntent,CAMERA_REQUEST);
It opens the camera, and i can take the picture. But the Problem arises once i click the save button (tick button in s3), my onActivityResult is not called instead A2's onDestroy method is called. I have few logics to be done in the onActivityResult fn.
I had read some post in Stackoverflow regarding this but i couldnt get useful output from that.I have my manifest like this for my second Activity(A2)
android:configChanges="keyboardHidden|orientation|locale"
android:screenOrientation="portrait
Note: In HTC One X my onActivityResult fn is getting called, but in my S3 second Activity(A2) is getting destroyed
Plz share ur thoughts on this. Thanks in Advance