Android doesn't actually even "use" java. The language that the code is written in is Java, but the android SDK takes the compiled bytecode and converts it in to the Dalvik bytecode.
So it is really a misconception that Android runs java. Android runs Dalvik, which the core libraries are based on the Java framework, but the end resulting binary files are not the same, and the virtual machines are also completely different.
Just like the Dalvik VM will not run Java bytecode, the Java VM will not run Dalvik bytecode.
Converting libraries to Dalvik is probably possible, if all the features are available in Android (or additional libraries), but anything that has a Java UI, will not work.
Comments
0 comments
Please sign in to leave a comment.