Android 应用 OpenFeint 问题

发布于 2024-11-29 01:45:26 字数 154 浏览 3 评论 0原文

我已经在我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

许你一世情深 2024-12-06 01:45:26

两个选项:

选项 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文