4 types of files for Android java,class,dex,apk

Source: Internet
Author: User
Java Files-----application source Files

Android itself is partly written in Java (basically the blue part of the architecture diagram is developed in Java), and Android's
Applications must use Java to develop

class file------Java-compiled target file
Unlike J2se,java, which can be run directly from a class, the class file on the Android platform cannot be run directly on Android. Because Google
Use your own Dalvik to run the app, so the class here is definitely not running in Androiddalvik Java environment, Android
The class file is actually just an intermediate target file during compilation and needs to be linked to a Dex file to run on Dalvik

Dex Files-----Executables on the Android platform
Android virtual machine Dalvik supported bytecode file format Google uses its own Dalvik virtual machine on the newly released Android platform
To define, this virtual machine executes not Java bytecode, but another byte code: the DEX format bytecode. After compiling the Java code,
Java bytecode can be converted to Dex bytecode by tools on the Android platform. While Google says Dalvik is for mobile devices
, but many in the industry think this is to avoid applying to sun javalicense. This DALVIKVM for mobile phone program/CPU did the most
Can execute many VMS at the same time without consuming too much resource.
APK file-------installation file on Android
APK is an extension of the Android installation package, and an Android installation package contains all the files associated with an Android application. apk
The file androidmanifest.xml files, application code (. dex files), resource files, and other files into a single compressed package. A work
can only enter one. apk file

4 types of files for Android java,class,dex,apk

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.