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
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.
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.