简体   繁体   English

是否有任何API可以让您使用c / c ++调用Android SDK的一部分?

[英]Is there any APIs that allow you to call parts of the the Android SDK in c/c++?

I wan't to build a crossplatform game for Android and iOS but I'm worried I wont be able to use the Android equivilent of Game Center and other stuff like that if I do so with something like Qt. 我不会为Android和iOS打造跨平台游戏,但我担心如果我将Qt之类的东西与Game Center的Android等价物一起使用,将无法使用。 Any way I can use these tools while still building the game in Qt? 我仍然可以在Qt中构建游戏的同时使用这些工具吗?

You can use the Android NDK. 您可以使用Android NDK。 See: http://developer.android.com/tools/sdk/ndk/index.html 参见: http : //developer.android.com/tools/sdk/ndk/index.html

"The NDK is a toolset that allows you to implement parts of your app using native-code languages such as C and C++. For certain types of apps, this can be helpful so you can reuse existing code libraries written in these languages, but most apps do not need the Android NDK." “ NDK是一个工具集,使您可以使用本机代码语言(例如C和C ++)实现应用程序的各个部分。对于某些类型的应用程序,这可能会有所帮助,因此您可以重用以这些语言编写的现有代码库,但是大多数应用程序不需要Android NDK。”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM