Android Google+ integration - repeated UserRecoverableAuthException

前端 未结 8 1743
独厮守ぢ
独厮守ぢ 2020-11-30 00:55

We have contacted Google about this and we are on chat

The issue seems to be fixed for devices except Samsung phones.

I\'m

8条回答
  •  长情又很酷
    2020-11-30 01:30

    you should startactiviy in UI thread

    try {
        ....
    } catch (IOException transientEx) {
        ....
    } catch (final UserRecoverableAuthException e) {
        ....
        runOnUiThread(new Runnable() {
            public void run() {         
                startActivityForResult(e1.getIntent(), AUTH_CODE_REQUEST);
            }
        });
    }
    

提交回复
热议问题