I have the following code in my onActivityResult for a fragment of mine:
onActivityResult(int requestCode, int resultCode, Intent data){ //other code P
I got this error while doing .show(getSupportFragmentManager(), "MyDialog"); in activity.
.show(getSupportFragmentManager(), "MyDialog");
Try .show(getSupportFragmentManager().beginTransaction(), "MyDialog"); first.
.show(getSupportFragmentManager().beginTransaction(), "MyDialog");
If still not working, this post (Show DialogFragment from onActivityResult) helps me to solve the issue.