我已经环顾四周,无法找到关于这个确切问题的任何问题.我确实发现了一些类似的问题,但并不完全是我想知道的.
如果您在C/C++中开发Android应用程序,与开发Java中的相同应用程序相比,会有(实质)的速度差异吗?
解决方法
从
Android docs:
The NDK will not benefit most applications. As a developer,you need
to balance its benefits against its drawbacks; notably,using native
code does not result in an automatic performance increase,but always
increases application complexity. In general,you should only use
native code if it is essential to your application,not just because
you prefer to program in C/C++.
NDK仅用于性能关键的情况.
但是,您可以使用C/C++创建整个应用程序,但仅当设备运行Android 2.3或更高版本:Can I make a rather native C++ app with Android?时