• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps SignInActivity not displaying properly on AndroidTV

I'm developing on a shield console. I've run into this edge case where, on start up, and only if not connected to a debugger, the SignInActivity will not display properly. Instead, the circle of the app that was selected expands, and then the screen just stays that color.

If you press "B" on the controller, it takes the player to the GooglePlay sign in screen, where you must approve your permissions. And from there everything is fine.

If I'm connected to a debugger (GDB via Visual Studio/Android Works), it works as expected, with no need to press B on the controller.

I've looked through the logcats of both the working and not working one, and I can't really see any differences. I'm using the GameHelper from here:

https://github.com/playgameservices...e/example/games/basegameutils/GameHelper.java

With only minor modifications. Both working and not working go to the resolveConnectionResult, and send the "StartResolutionForResult", but then the broken one doesn't display anything until "B" is pressed on the controller.

Any ideas what's going on?
 
After a lot of debugging, we found this seems to happen when the sign in token gets out of sync with data google needs to know whether to display the sign in UI. I'm still not sure of the exact nature of the error, but I've narrowed it down to successfully signing into my app (no problems), then stopping my app, going into Settings->Apps, and clearing my applications data, then starting again. It seems the sign in token is still valid, but somehow GooglePlay has gotten into a weird state where it doesn't show the UI correctly.
 
Back
Top Bottom