I am working on a fragment that call camera.
startActivityForResult(intent, REQUEST_CAMERA);
The problem is , if I overwrite the onActivityResult inside the fragment, it does not call,
@Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        Log.d("test","result frag");
        super.onActivityResult(requestCode, resultCode, data);
    }
but only call the onActivityResult in Main Activity
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
   Log.d("test","main");
   super.onActivityResult(requestCode, resultCode, data);
}
After some findings, there is some solution by calling the fragment method inside the Main Activity 's onActivityResult function. But how can I fix it with other approach? Thanks a lot.
 
    