Android 应用 OpenFeint 问题
我已经在我的 Android 游戏中集成了 OpenFeint, 但它会在游戏开始时自动加载并要求启用或禁用 openfeint。如果互联网连接速度很慢,则 openfeint 需要很长时间才能响应。
我怎样才能停止自动加载 openfeint 并询问用户使用它或不使用代码。?
I've Integrated OpenFeint in my android game,
but it loads automatically and ask for enalble or disable openfeint when the game starts. If Internet connection is slow, then openfeint takes too long to respond.
How can i stop openfeint loading automatically and ask user to use it or not using code.?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
两个选项:
选项 1:使用 OpenFeint.initializeWithoutLoggingIn,而不是 OpenFeint.initialise,然后向用户显示提示。如果他们单击“是”,请调用 OpenFeint.login()。
选项 2:在用户单击“是”之前不要调用初始化。这意味着更多的代码更改(从应用程序类的 onCreate() 移动),但会给您带来更好的性能,因为初始化 OpenFeint 可能会非常慢。
Two options:
Option 1: instead of OpenFeint.initialise, use OpenFeint.initializeWithoutLoggingIn, then display a prompt to the user. If they click "yes", call OpenFeint.login().
Option 2: Don't call initialize until the user clicks "yes". This mean more code changes (moving from your Application class' onCreate()) but will give you better performance, because initializing OpenFeint can be quite slow.