Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question on bytecode - Android  RSS feed

 
Ranch Hand
Posts: 10128
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?
 
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
 
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.
 
bacon. tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!