Android app crashes on addAccountExplicitly(account, password, null);

后端 未结 6 1574
伪装坚强ぢ
伪装坚强ぢ 2021-01-03 19:22

After a successful basic authentication I want to add an account for later use. When I tried to create this account using the following code:

AccountManager          


        
6条回答
  •  情话喂你
    2021-01-03 20:12

    There's not a one golden response to your 3rd question.

    If all apps use the same name, you may consider a service, just remember to restrict it to your own apps.

    However, the user may get confused about being signed in just after the app is installed thus I would recommend to allow user to sign in in each separate app. You could generate multiple separate private keys for the the same app in Google Developer Console and thus get the same user LOCAL_ID in every app.

提交回复
热议问题