构建快速Android应用程序 – Java或本机?

前端之家收集整理的这篇文章主要介绍了构建快速Android应用程序 – Java或本机?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我即将开始构建一个 Android应用程序(我正在开发Web服务和数据库),我想知道在使用Java或直接编码到C或C之间的应用速度是否有显着差异.

该应用程序不包含任何复杂的图形或物理,它的速度主要取决于REST Web服务的几个对象的传输速度.

提前致谢

解决方法

Google says你可能应该坚持使用Java:

Before downloading the NDK,you should understand that the NDK will not benefit most apps. As a developer,you need to balance its benefits against its drawbacks. Notably,using native code on Android generally does not result in a noticable performance improvement,but it always increases your app complexity. In general,you should only use the NDK if it is essential to your app—never because you simply prefer to program in C/C++.

Typical good candidates for the NDK are self-contained,cpu-intensive operations that don’t allocate much memory,such as signal processing,physics simulation,and so on. When examining whether or not you should develop in native code,think about your requirements and see if the Android framework APIs provide the functionality that you need.

原文链接:https://www.f2er.com/android/311083.html

猜你在找的Android相关文章