如何将 OpenFeint 集成到 Android 应用程序中?
我想将 OpenFeint 集成到 Android 应用程序中,因为我想与之交互的现有 iPhone 游戏。
但是,当我尝试在 Android 项目中添加 OpenFeint 时,示例 OpenFeint 项目未在 Eclipse 中运行。我收到一条错误消息,指出未找到“OpenFeintSampleApi”。可能是什么原因造成的?有没有人有更好的使用 OpenFeint 的说明?
I would like to integrate OpenFeint in an Android application, because I have an existing iPhone game that I would like to interact with.
However, when I try to add OpenFeint in my Android project, the sample OpenFeint project is not running in Eclipse. I get an error that says that the "OpenFeintSampleApi" is not found. What could be causing this? Does anyone have better instructions for using OpenFeint?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这篇文章对我很有帮助:Android 1.10.2 入门:
4. 将 OpenFeint 集成到您的游戏中
文章中没有提及的一些需要注意的事项;确保您导入的 OpenFeint 项目的编译器合规级别为 1.6(项目 > 属性 > Java 编译器),否则您将收到有关 @Override 注释的错误。
它没有提到的另一件事是将 OpenFeint 项目引用为库项目。右键单击您的项目>属性>安卓>图书馆>添加...并选择 OpenFeint 项目。
This article was helpful for me: Getting Started with OF Android 1.10.2:
4. Integrate OpenFeint Into Your Game
A few things to be aware of that the article doesn't mention; make sure the OpenFeint project you import has a compiler compliance level of 1.6 (Project > Properties > Java Compiler) or you'll get errors about the @Override annotations.
Another thing it doesn't mention is referencing the OpenFeint project as a library project. Right click your project > Properties > Android > Library > Add... and select the OpenFeint project.