Press the button on DialogFragment to open the gallery and receive the result with ʻonActivityResult ()` on DialogFragment.
Isn't ʻonActivityResult () called on DialogFragment? For some reason, the DialogFragment caller (MainActivity) ʻonActivityResult ()
is called.
(This is being used by another operation. I want to complete the Dialog Fragment on the Dialog Fragment)
Call super.onActivityResult ()
with ʻonActivityResult ()` on MainActivity.
I'm a very beginner so I don't know why this will call ʻonActivityResult ()` on DialogFragment ... Please let me know in the comments.
Fragment onActivityResult is not called
Recommended Posts