Android Youtube API thumbnail crash -
when initialize youtubethumbnailview, found exception
my code :
youtubethumbnailview.initialize(api_key, new youtubethumbnailview.oninitializedlistener() { @override public void oninitializationsuccess(youtubethumbnailview youtubethumbnailview, youtubethumbnailloader thumbnailloader) { } @override public void oninitializationfailure(youtubethumbnailview youtubethumbnailview, youtubeinitializationresult youtubeinitializationresult) { } });
exception:
java.lang.illegalstateexception: not connected. call connect() , wait onconnected() called. @ com.google.android.youtube.player.internal.r.i(unknown source) @ com.google.android.youtube.player.internal.o.k(unknown source) @ com.google.android.youtube.player.internal.o.a(unknown source) @ com.google.android.youtube.player.internal.p.<init>(unknown source) @ com.google.android.youtube.player.internal.ac.a(unknown source) @ com.google.android.youtube.player.youtubethumbnailview$a.a(unknown source) @ com.google.android.youtube.player.internal.r.g(unknown source) @ com.google.android.youtube.player.internal.r$c.a(unknown source) @ com.google.android.youtube.player.internal.r$b.a(unknown source) @ com.google.android.youtube.player.internal.r$a.handlemessage(unknown source) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:211) @ android.app.activitythread.main(activitythread.java:5315) @ java.lang.reflect.method.invoke(native method) @ java.lang.reflect.method.invoke(method.java:372) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:941) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:736)
Comments
Post a Comment