{"action":"created","issue":{"url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android/issues/328","labels_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android/issues/328/labels{/name}","comments_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android/issues/328/comments","events_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android/issues/328/events","html_url":"https://github.com/ConnectSDK/Connect-SDK-Android/issues/328","id":117411654,"number":328,"title":"Crash onConnected()","user":{"login":"jamescahall","id":1072563,"avatar_url":"https://avatars.githubusercontent.com/u/1072563?v=3","gravatar_id":"","url":"https://api.github.com/users/jamescahall","html_url":"https://github.com/jamescahall","followers_url":"https://api.github.com/users/jamescahall/followers","following_url":"https://api.github.com/users/jamescahall/following{/other_user}","gists_url":"https://api.github.com/users/jamescahall/gists{/gist_id}","starred_url":"https://api.github.com/users/jamescahall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamescahall/subscriptions","organizations_url":"https://api.github.com/users/jamescahall/orgs","repos_url":"https://api.github.com/users/jamescahall/repos","events_url":"https://api.github.com/users/jamescahall/events{/privacy}","received_events_url":"https://api.github.com/users/jamescahall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"dmayboroda","id":2357342,"avatar_url":"https://avatars.githubusercontent.com/u/2357342?v=3","gravatar_id":"","url":"https://api.github.com/users/dmayboroda","html_url":"https://github.com/dmayboroda","followers_url":"https://api.github.com/users/dmayboroda/followers","following_url":"https://api.github.com/users/dmayboroda/following{/other_user}","gists_url":"https://api.github.com/users/dmayboroda/gists{/gist_id}","starred_url":"https://api.github.com/users/dmayboroda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmayboroda/subscriptions","organizations_url":"https://api.github.com/users/dmayboroda/orgs","repos_url":"https://api.github.com/users/dmayboroda/repos","events_url":"https://api.github.com/users/dmayboroda/events{/privacy}","received_events_url":"https://api.github.com/users/dmayboroda/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-11-17T17:52:32Z","updated_at":"2015-12-09T01:34:13Z","closed_at":null,"body":"Fatal Exception: java.lang.IllegalStateException: Not connected. Call connect() and wait for onConnected() to be called.\r\n       at com.google.android.gms.internal.jl.dS(Unknown Source)\r\n       at com.google.android.gms.internal.jl.hw(Unknown Source)\r\n       at com.google.android.gms.internal.im.a(Unknown Source)\r\n       at com.google.android.gms.cast.Cast$CastApi$a.setMessageReceivedCallbacks(Unknown Source)\r\n       at com.connectsdk.service.CastService.attachMediaPlayer(CastService.java:425)\r\n       at com.connectsdk.service.CastService.access$500(CastService.java:70)\r\n       at com.connectsdk.service.CastService$ConnectionCallbacks.onConnected(CastService.java:965)\r\n       at com.google.android.gms.internal.jm.f(Unknown Source)\r\n       at com.google.android.gms.common.api.c.gJ(Unknown Source)\r\n       at com.google.android.gms.common.api.c.d(Unknown Source)\r\n       at com.google.android.gms.common.api.c$2.onConnected(Unknown Source)\r\n       at com.google.android.gms.internal.jm.f(Unknown Source)\r\n       at com.google.android.gms.internal.jm.dU(Unknown Source)\r\n       at com.google.android.gms.internal.jl$h.b(Unknown Source)\r\n       at com.google.android.gms.internal.jl$h.g(Unknown Source)\r\n       at com.google.android.gms.internal.jl$b.hy(Unknown Source)\r\n       at com.google.android.gms.internal.jl$a.handleMessage(Unknown Source)\r\n       at android.os.Handler.dispatchMessage(Handler.java:110)\r\n       at android.os.Looper.loop(Looper.java:193)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5323)\r\n       at java.lang.reflect.Method.invokeNative(Method.java)\r\n       at java.lang.reflect.Method.invoke(Method.java:515)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)\r\n       at dalvik.system.NativeStart.main(NativeStart.java)"},"comment":{"url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android/issues/comments/163078303","html_url":"https://github.com/ConnectSDK/Connect-SDK-Android/issues/328#issuecomment-163078303","issue_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Android/issues/328","id":163078303,"user":{"login":"dmayboroda","id":2357342,"avatar_url":"https://avatars.githubusercontent.com/u/2357342?v=3","gravatar_id":"","url":"https://api.github.com/users/dmayboroda","html_url":"https://github.com/dmayboroda","followers_url":"https://api.github.com/users/dmayboroda/followers","following_url":"https://api.github.com/users/dmayboroda/following{/other_user}","gists_url":"https://api.github.com/users/dmayboroda/gists{/gist_id}","starred_url":"https://api.github.com/users/dmayboroda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmayboroda/subscriptions","organizations_url":"https://api.github.com/users/dmayboroda/orgs","repos_url":"https://api.github.com/users/dmayboroda/repos","events_url":"https://api.github.com/users/dmayboroda/events{/privacy}","received_events_url":"https://api.github.com/users/dmayboroda/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T01:34:13Z","updated_at":"2015-12-09T01:34:13Z","body":"I try to understand what the problem is, but i have not enough info. You firstly need to call connect() and wait until your callback receives. Can you write use case when this exception occurs or share some code.\r\nThanks "}}