构建快速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性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...