I am facing issue while taking image from camera and gallery to a fragment, my condition is
I have four fragments in view pager and one of the fragment is having profile pic update functionality, I am not getting the result in onActivityResult()
of Parent Activity for some devices and that is why I am not getting the result for Fragment too, I am Using the below code, Please tell me what is going wrong "I am facing this issue mostly in SAMSUNG devices",
ON ACTIVITY RESULT FOR PARENT ACTIVITY,
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if(fragmentProfile!=null)
fragmentProfile.onActivityResult(requestCode,resultCode,data);
}
Intent in Fragment Profile for Capturing Photo
Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);
startActivityForResult(cameraIntent, REQUEST_CODE_TAKE_PICTURE);