| Author |
Question on bytecode - Android
|
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
|
As far as I understand, we write Android apps using Java but is the compiled source a Java byte code or some other format?
|
SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
|
 |
Imran Mohd
Ranch Hand
Joined: Mar 02, 2009
Posts: 38
|
|
The java Program which we have written will be converted in JavaByteCode and than this JavaByteCode is converted in to Dalvik bytecode by Using "dx" tool
java.txt--->javabytecode-----> Dalvik bytecode------> Dalvik virtual Machine
|
Cheers,
Mohd Imran (SCJP 1.5)
|
 |
Monu Tripathi
Rancher
Joined: Oct 12, 2008
Posts: 1365
|
|
The JavaByte code of your compiled class is converted to something called as Dalvik executables or (.dex) files, using the "dx" tool bundled with the SDK . The application is packaged into .apk file(zipped .dex files) The Dalvik virtual machine runs Dalvik executables in the apk file.
You may want to read this for details of .dex file format.
|
[List of FAQs] | [Android FAQ] | [My Blog] | [Samuh Varta]
|
 |
 |
|
|
subject: Question on bytecode - Android
|
|
|