【问题标题】:Google api gettoken(Context,String,String) is now deprecatedGoogle api gettoken(Context,String,String) 现已弃用
【发布时间】:2016-10-16 12:34:05
【问题描述】:

我曾经使用GoogleAuthUtil.gettoken(Context,String,String)方法来获取访问令牌。现在它已被弃用,我想要一个替代方案。我认为它现在将Account 作为参数类型,但我真的不知道它是如何工作的。 任何帮助将不胜感激。 谢谢。

【问题讨论】:

    标签: android google-api google-plus google-signin


    【解决方案1】:

    您可以从电子邮件地址创建帐户:

    Account account = new Account(email,  GoogleAuthUtil.GOOGLE_ACCOUNT_TYPE);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-07-18
      • 2015-02-03
      • 1970-01-01
      • 2022-12-31
      • 2019-08-30
      • 2021-02-21
      • 1970-01-01
      相关资源
      最近更新 更多