Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on bytecode - Android

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I understand, we write Android apps using Java but is the compiled source a Java byte code or some other format?
 
Imran Mohd
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic