I am trying to take a picture using an intent. My problem is that sometimes after taking a picture my activity, which calls startActivityForResult, seems to be destroyed so
Actually the camera causes the orientation change in your activity that is why your activity is being destroyed and recreated.
Add this in your manifest file it will prevent the orientation change and your activity will not get destroyed and recreated.