【问题标题】:Prevent GoogleApiClient from disconnecting on onStop()防止 GoogleApiClient 在 onStop() 上断开连接
【发布时间】:2015-02-22 17:09:27
【问题描述】:

我正在使用 Google Play 游戏服务开发一款游戏,特别是一款实时多人游戏。现在我对GoogleApiClient 的建议使用模式有疑问,它包括在onStop() 期间调用disconnect(),这会导致游戏停止,例如,如果玩家接到电话。 一个可能的解决方案是使用bound Service,但问题仍然存在,因为我应该调用unbindService()。 解决这个问题的常用方法是什么?我搜索了互联网但没有结果。 提前谢谢你。

【问题讨论】:

    标签: android google-play-games


    【解决方案1】:

    似乎我在搜索时使用了错误的关键字,这两个链接提供了一个详尽的答案:

    【讨论】:

      猜你喜欢
      • 2016-12-30
      • 2014-09-20
      • 1970-01-01
      • 1970-01-01
      • 2020-07-29
      • 2013-11-19
      • 2019-11-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多