In my fragment I have started startActivityforresult intent for photo capture.I have overridden onActivityResult callback method in fragment class. I have implemented onActivity
I aslo face this problem.
Calling of an activity from fragment
((Activity)context).startActivityForResult(photoPickerIntent, 100);
here "context" from FragmentActivity. Now the result comes in FargmentActivity onActivityResult method. to switch this result you have to declare a static variable of fragment class in fragmetn activity class.
static ActivityUploadPhotos activityUploadPhotos;
...
ActivityUploadPhotos f = new ActivityUploadPhotos();
ActivityHome.activityUploadPhotos=f;
......
if(activityUploadPhotos!=null)
{
activityUploadPhotos.onActivityResult(requestCode, resultCode, data);
}