java - Google Games: Gingerbread w/ Multiple G+ Accounts > Indefinite Sign-In Loop - GameHelper -
with google play game services samples, if use gingerbread device has multiple google accounts, cannot sign in. gamehelper fails sign-in , stuck in never ending "sign-in screen" loop.
if open gamehelper.java , comment out line 417: mexpectingresolution = false;
..then can log in. causes game crash.
google play services , new class gamehelper example buttonclicker2000 on android 2.3 can not log in account. when dialog box (sign-in dialog) appears user's choice, method onstop().
/** call method activity's onstop(). */ public void onstop() { debuglog("onstop"); assertconfigured("onstop"); if (mgoogleapiclient.isconnected()) { debuglog("disconnecting client due onstop"); mgoogleapiclient.disconnect(); } else { debuglog("client disconnected when got onstop."); } mconnecting = false; mexpectingresolution = false; // let go of activity reference mactivity = null; }
after selecting user calls onstart(). however, there no sign-in. instead development dialog box (sign-in dialog) reappears user's choice. , indefinitely.
/** call method activity's onstart(). */ public void onstart(activity act) { mactivity = act; mappcontext = act.getapplicationcontext(); debuglog("onstart"); assertconfigured("onstart"); if (mconnectonstart) { if (mgoogleapiclient.isconnected()) { log.w(tag, "gamehelper: client connected on onstart()"); } else { debuglog("connecting client."); mconnecting = true; mgoogleapiclient.connect(); } } else { debuglog("not attempting connect becase mconnectonstart=false"); debuglog("instead, reporting sign-in failure."); mhandler.postdelayed(new runnable() { @override public void run() { notifylistener(false); } }, 1000); } }
is there fix log-in loop bug in gamehelper?
the source here: https://github.com/playgameservices/android-basic-samples
Comments
Post a Comment