Youtubeplayerfragment Lifecycle In A Dialogfragment
I am trying to embed a YouTubePlayerFragment into a DialogFragment. I am able to start the dialog one time and show the YouTubePlayer in it, but the second time it always crashes (
Solution 1:
I guess it's because you are using a fragment inside a fragment (Nested fragments) without using getChildFragment()
Look here for an example how to do it : nested fragments
Post a Comment for "Youtubeplayerfragment Lifecycle In A Dialogfragment"