【问题标题】:Google Play Services loops my App谷歌播放服务循环我的应用程序
【发布时间】:2013-10-15 22:20:51
【问题描述】:

前提条件: 不要保持活动 -> 启用

我正在使用 Google Drive SDK。在登录过程中,您选择要连接的帐户,然后 Google Play 服务会显示一个对话框,用户必须在其中接受应用程序所需的权限。当此对话框打开时,我可以在日志中看到主要活动的 onCreate() onResume() 和 onPause() 方法被循环调用。这是 Google Play 服务的错​​误还是我做错了什么?

【问题讨论】:

    标签: android google-drive-api google-play-services


    【解决方案1】:

    我认为这是因为当您调用 AccountManager 时,whis 会产生自己的活动,因此在您的活动中调用 onPause(),当用户选择帐户时调用 onResume()。如果没有选择任何帐户,您可以通过仅调用 AccountManager 来绕过此操作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-18
      • 2014-05-23
      • 1970-01-01
      • 1970-01-01
      • 2013-11-08
      • 1970-01-01
      相关资源
      最近更新 更多