Skip to content Skip to sidebar Skip to footer

Activity Has Leaked Serviceconnection Com.google.android.youtube.player That Was Originally Bound Here

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 for different Tabs. On my third

Solution 1:

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.

Solution 2:

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.

Post a Comment for "Activity Has Leaked Serviceconnection Com.google.android.youtube.player That Was Originally Bound Here"