java.lang.IllegalStateException: Not connected. Call connect() - YouTube API
<p>I am trying to get the ThumbnailView working on my ArrayAdapter but I am getting the following error:</p>

<pre><code>java.lang.IllegalStateException: Not connected. Call connect() and wait for onConnected() to be called.
        at com.google.android.youtube.player.internal.r.i(Unknown Source)
        at com.google.android.youtube.player.internal.o.k(Unknown Source)
        at com.google.android.youtube.player.internal.o.a(Unknown Source)
        at com.google.android.youtube.player.internal.p.&lt;init&gt;(Unknown Source)
        at com.google.android.youtube.player.internal.ac.a(Unknown Source)
        at com.google.android.youtube.player.YouTubeThumbnailView$a.a(Unknown Source)
</code></pre>

<p>My ArrayAdapter looks like this:</p>

<p><a href="http://pastebin.com/C4wtBAGy" rel="noreferrer">Code for ArrayAdapter</a></p>

<p>My xml video_items.xml Looks like this:</p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:background="@drawable/listviewbox"
    android:padding="10dp"
    android:layout_height="match_parent"&gt;

    &lt;!-- Video Thumbnail --&gt;
    &lt;com.google.android.youtube.player.YouTubeThumbnailView
        android:id="@+id/imageView_thumbnail"
        android:layout_width="85dp"
        android:layout_height="85dp"
        android:layout_alignParentLeft="true"
        android:layout_margin="5dp"
        android:background="@color/panelcolor"
        android:scaleType="centerCrop" /&gt;

    &lt;!-- Video Title --&gt;
    &lt;TextView
        android:id="@+id/video_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignTop="@+id/imageView_thumbnail"
        android:layout_toRightOf="@+id/imageView_thumbnail"
        android:paddingBottom="5dp"
        android:paddingRight="5dp"
        android:text="@string/videotext"
        android:textColor="@android:color/black"
        android:textSize="16sp" /&gt;

&lt;/RelativeLayout&gt;
</code></pre>

<p>What could be wrong here?        </p>