Can the Android JVM run on a PC also?
or is it limited to working on a mobile device only?
From what I understand, when you develop using eclipse it is emulated, not running the actual jvm correct?
Yes and no. The Android VM is actually called Dalvik VM. It executes dalvik executables (dex) which are normally packaged as Android Packages (apk) file. The dex files are created from Java byte code files (output of a java compile, .class files) which run on a regular jvm. Currently the Dalvik VM runs on ARM and MIPS based processors. When you talk about running on a PC I assume you are talking about a x86 based computer. In this case you need to use an emulator to run the vm. The standard emulator that is shipped with the Android SDK uses qemu (qemu site) to run emulator the standard arm processor.
There is also a porting effort to x86 under way but the most common way currently is emualtion.
In terms of android running on netbooks it all comes down to the processor again...
Also keep in mind that if you want to run Android applications on a PC you need more than just the VM. You basically need to run the whole linux stack (e.g. including video codecs and so on). The easiest way to do that is to run an emulator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With