AuthToken from AccountManager in Android Client No Longer Working

前端 未结 2 1522
旧巷少年郎
旧巷少年郎 2020-12-07 08:56

I\'m pretty exasperated. I\'m attempting to build a turn-based multiplayer online game for Android using Google App Engine in Java as the server.

They seem like a pe

2条回答
  •  庸人自扰
    2020-12-07 09:37

    not an answer per se, but i had to substitute the "ah" with "android" in line 4 to get the correct token on an android nexus one with android v2.2.1. not sure about other devices/versions. line 4 then turns from :

    ... = mgr.getAuthToken(acct, "ah", null, this, null, null);
    

    into :

    ... = mgr.getAuthToken(acct, "android", null, this, null, null);
    

提交回复
热议问题