我可以做的Andr​​oid编程C ++,C? [英] Can I do Android Programming in C++, C?

查看:111
本文介绍了我可以做的Andr​​oid编程C ++,C?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以做Android的C ++编程,C?如果答案是是,那么请告诉怎么样?什么是设置的程序?

Can I do Android programming in C++, C? If the answer is "yes" then please tell how? And what's the procedure to set up?

我不知道的OBJ-C,Java,但是精通C,C ++,闪光AS3,SDK由谷歌发布。

I don't know Obj-C, Java, but well-versed in C, C++, Flash AS3, SDK released by Google.

请不要告诉NVDIA SDK它不是完全开发:)

Please do not tell about NVDIA SDK it's not fully developed :)

推荐答案

请注意:下面答复是可怕的过时的,并且可能不完全正确了

您可以用C / C ++编程使用的Andr​​oid NDK 。你必须要包装你的C ++ codeBase的静态库并加载,通过一个Java包装和放大器; JNI。

You can program in C/C++ using the Android NDK. You'll have to wrap your c++ codebase in a static library and load that through a Java wrapper & JNI.

标准NDK不支持RTTI和大量的标准C ++的功能也无法使用,比如std ::字符串,等等。为了解决这个问题,你可以重新编译NDK。梅德Moskalchuk供应NDK的修改版本支持此在 HTTP://www.crystax。净/安卓/ NDK-r3.php 。这款改装版的作品上在ARM处理器上运行的所有Android手机。

The standard NDK does not support RTTI and a lot of the functionality of standard c++ is also not available such as std::string, etc. To solve this you can recompile the NDK. Dmitry Moskalchuk supplies a modified version of the NDK that supports this at http://www.crystax.net/android/ndk-r3.php. This modified version works on all Android phones that run on an ARM processor.

根据不同的类型的应用程序,你应该决定使用Java或C / C ++。我会使用C / C ++的任何需要高于平均水平的计算能力和游戏 - Java进行休息。

Depending on the kind of application you should decide to use Java or C/C++. I'd use C/C++ for anything that requires above average computational power and games -- Java for the rest.

只需选择一种语言,写的大部分是语言应用程序的; JNI调用可以通过大量减少你的表现。 Java是并不难,但 - 如果你知道如何在C / C ++编程。爪哇的优点是,应用程序可在运行机器人,其中,作为应用NDK取决于架构它被编译为任何设备上运行

Just pick one language and write the majority of your application in that language; JNI calls can decrease your performance by a lot. Java isn't that hard though -- if you know how to program in C/C++. The advantage of Java is that the application can run on any device running Android, where as NDK applications depend on the architecture it was compiled for.

这篇关于我可以做的Andr​​oid编程C ++,C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆