java或qt用于编码android? [英] java or qt for coding android?

查看:67
本文介绍了java或qt用于编码android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用java或qt创建Android应用程序有什么区别?

java使用Dalvik虚拟机,qt代码也使用虚拟机,还是只编译代码?

程序的速度怎么样?

为什么谷歌选择java支持android?

What are the differences while using java or qt for creating an android application?
java use Dalvik virtual machine , does qt code use a virtual machine too, or just compiling the code?
what about the speed of the program?
and why google choose java for supporting android?

推荐答案

在KitKat之前......

谷歌选择Java因为它的受欢迎程度和大规模开源工具支持Java开发。第二个原因是Java使用Java字节代码,因此无需为每部手机重新编译它,但它可以运行虚拟机(JVM - Java虚拟机)。

Google后来创建了Dalvik虚拟机(DVM)类似于JVM,但设计用于在资源较少(内存,速度)的机器上运行。

在KitKat之后......

使用KitKat谷歌推出了取代DVM的Android Runtime。这个想法是,在安装时,Java字节代码被编译(使用提前调用的编译器)到机器代码,并且机器特定的代码实际安装在系统上...



如果您使用Java开发Android版,您将直接在Android的API层上运行您的应用程序,同时运行Qt(基于C并且不是Android上直接支持的)您引入的和其他层 - Qt公共库的...

在大多数情况下,性能不会成为问题,必须在特定应用的上下文中进行检查......
Before KitKat...
Google choose Java because of its popularity and the mass open source tool support Java development. The second reason is that Java uses Java byte code and for that no need to recompile it for every phone, but it can be run a virtual machine (JVM - Java Virtual Machine).
Google later created the Dalvik Virtual Machine (DVM) which is similar to JVM but designed to run on machines with low resources (memory, speed).
After KitKat...
With KitKat Google introduced the Android Runtime that replaces DVM. The idea is that at the installation time the Java byte code is compiled (using what called ahead of time compiler) to machine code and that machine specific code is actually installed on the system...

If you use Java to develop for Android you will run your application directly on the API layer of Android, while running Qt (which is C based and for that not directly supported on Android) you introduce and other layer - that of the Qt common libraries...
In most cases the performance will not be an issue and it must be examined in the context of your specific application...


这篇关于java或qt用于编码android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆