Activity has leaked ServiceConnection com.google.android.youtube.player that was originally bound here

后端 未结 2 1067
[愿得一人]
[愿得一人] 2021-01-24 12:36

I\'m using an Activity that has a layout with android.support.v4.view.ViewPager that I used to manipulate Tab navigation. I have different Fragments fo

相关标签:
2条回答
  • 2021-01-24 13:10

    If I guess it correctly, you load the api when the second page appears, and also then init the YouTube API. Instead of supplying your activity as the context try supplying the application context to the api.

    0 讨论(0)
  • 2021-01-24 13:21

    I used a fragment in TabLayout to start a Youtube video Intent. The App was working OK but Logcat showed this error. I found that I didn't release the thumbnail loaders after they are loaded or not(depending on valid video id). It resolved my issue.

    0 讨论(0)
提交回复
热议问题