Thứ Sáu, 3 tháng 6, 2011

Why does android run on a java virtual machine?

Why does android run on a java virtual machine?

Why does android run on a java virtual machine? I know android is linux based. I also heard that oracle is sueing google over android using java. Is there a way that google could slowly ditch java on android. Like could they use android without the java virtual machine and make it so apps use c and c++.

Answer by www.GadgetZZ.com
only the simulator from the sdk does this. Android itself does not

Answer by metavariable
Android doesn’t run on a Java virtual machine. That’s why Oracle is suing them. Sun/Oracle would have liked Google to license a Java VM for large amounts of money. Instead, Google implemented their own virtual machine called Dalvik. It’s not compatible with Java, it’s not even the same architecture as Java, being a register machine rather than stack-based. The Android SDK includes a translator which takes Java VM bytecode, and translates it to Dalvik bytecode.

As to why Android runs on a VM, there are a number of reasons.

Firstly, it makes it easier to sandbox and control the apps for security reasons.

Secondly, it makes the apps more compact. Native ARM code is RISC, with all the instructions being the same length, and hence takes up comparatively large amounts of space.

Thirdly, it gives them the option of migrating to different CPU hardware without needing developers to rebuild every single application.

Know better? Leave your own answer in the comments!

New Android Statues at Google Headquarter
google android

Image by Yang and Yun’s Album

plz help me is this good or not

Answer by Lukehluke
Its not a good tablet but it works and its quite cheap.

What do you think? Answer below!

Display property listing on Google Map by choosing city or zipcode. Currently working for California state only


Không có nhận xét nào:

Đăng nhận xét