Created Tuesday 10 September 2013
- Android application package file.
Contains:
- application's code (.dex files)
- resources
- manifest file
To run an application on an emulator or device, the application must be signed using debug or release mode.
Build Process
- The Android Asset Packaging Tool (aapt) compiles resource files (ex: manifest and XML) and compiles them. Produces R.java.
- The aidl tool converts any .aidl interfaces into Java interfaces.
- Java compiler creates CLASS files for all of your Java code.
- The dex tool converts the CLASS files to Dalvik byte code. Any 3rd party libraries and .class files that you have included in your project are also converted into .dex files.
- The apkbuilder takes the compiled resources, DEX files, and all non-compiled resources (such as images) and creates the APK file
- The APK is then signed with either a debug or release key before it can be installed to a device.
- Finally, if the application is being signed in release mode, you must align the .apk with the zipalign tool. Aligning the final .apk decreases memory usage when the application is running on a device.
- (optional) use :ApkFileFormat:ProGuard to obfuscate the APK file
Links
- http://developer.android.com/guide/appendix/glossary.html
- http://developer.android.com/tools/building/index.html
No backlinks to this page. comments powered by Disqus