构建快速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.

相关文章

这篇“android轻量级无侵入式管理数据库自动升级组件怎么实现...
今天小编给大家分享一下Android实现自定义圆形进度条的常用方...
这篇文章主要讲解了“Android如何解决字符对齐问题”,文中的...
这篇文章主要介绍“Android岛屿数量算法怎么使用”的相关知识...
本篇内容主要讲解“Android如何开发MQTT协议的模型及通信”,...
本文小编为大家详细介绍“Android数据压缩的方法是什么”,内...