【发布时间】:2014-08-17 21:11:43
【问题描述】:
在我的 Google Play Services API 应用程序中登录 Google Play 时遇到问题。 我目前正在使用 BaseGameUtils 实现成就,我发现要在 Activity 中使用它,该 Activity 必须扩展 BaseGameUtils 或 BaseGameActivity。
Here 是我的问题所在;我需要使用 BaseGameUtils 的所有活动以及正确功能所需的扩展类。 这是一个示例:
// This would be in Play.java, one of the main activities in use
public class Play extends GameState {
private boolean debug = true;
// I want to extend BaseGameUtils from this class, yet I need to
// Extend GameState to retain functional operation
}
如果我不能从 BaseGameUtils 扩展它,我将如何使用它,以及在我需要它的地方已经扩展了另一个类时如何使用它。
我已经有了 BaseGameUtils 和所有需要设置和工作的东西。但是,如果没有登录功能,它就毫无用处并且会导致游戏崩溃。我在代码中放置了一些 try/catch 来阻止它以进行调试。
【问题讨论】:
标签: java android api console achievements