android - NullPointerException in Google Play Services When Calling play() on RemotePlaybackClient -
this sample application of mine used work fine.
somewhere in past few months, though, google updated google play services (and chromecast itself), , when phone call play()
on remoteplaybackclient
chromecast, google play services crashes with:
e/androidruntime﹕ fatal exception: main java.lang.nullpointerexception @ com.google.android.gms.cast.media.aq.a(sourcefile:96) @ com.google.android.gms.cast.media.n.i(sourcefile:1856) @ com.google.android.gms.cast.media.u.run(sourcefile:2092) @ android.os.handler.handlecallback(handler.java:730) @ android.os.handler.dispatchmessage(handler.java:92) @ android.os.looper.loop(looper.java:137) @ android.app.activitythread.main(activitythread.java:5103) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:525) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:737) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:553) @ dalvik.system.nativestart.main(native method)
note play()
phone call has desired effect, in chromecast plays media. sometime after calls itemactioncallback
onresult()
, aforementioned crash in google play services occurs. that, in turn, causes connection chromecast collapse, mediarouteactionprovider
vanishes , have re-run app connect again, despite chromecast playing media requested.
i have tested 2 devices (nexus 4 , galaxy nexus) same results.
i have created new app, trying show image (instead of play movie, original sample), , same crash.
has seen , found workaround/fix/whatever?
as noted in comment chain, caused bug in google play services, fixed. many ali naddaf assistance!
android google-play-services chromecast
No comments:
Post a Comment