1

I am a bit stumped as to my approach here.

I have an OpenGLES application written using NDKr8 using ANativeActivity and purely C++. Now i need to get Twitter and the OAuth api integrated. I cant use the C++ library as the support for cURL isn't there. I am considering using JNI and the Twitter4J library but was wondering if anyone else has tried a different approach.

4

1 回答 1

0

好吧,作为对维克托和我自己的回应……

我使用 JNI 调用来回调 java,并使用 Twitter4J 完成。在移动到 nw 活动时,我在确保处理的统计信息和保留上下文方面获得了一些乐趣,有关正确方法,请参阅 nvidia tegra 文档。

请注意,您可以使用“clazz”成员启动新活动并将其转换为 JObject,然后使用 JNI 将其传递回 Java 类。感谢 android-ndk 邮件列表提供一些有用的建议。

于 2012-07-27T09:44:54.677 回答