File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes Question on bytecode - Android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Question on bytecode - Android" Watch "Question on bytecode - Android" New topic
Author

Question on bytecode - Android

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9381
    
    2

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, Certified Scrum Master
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: 1369
    
    1

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] | [Samuh Varta]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question on bytecode - Android