https://github.com/therezacuet/android-developer-interview-question
https://github.com/therezacuet/android-developer-interview-question
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/therezacuet/android-developer-interview-question
- Owner: therezacuet
- Created: 2019-10-31T05:45:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-31T05:53:29.000Z (almost 6 years ago)
- Last Synced: 2025-03-16T08:45:14.052Z (7 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# android-developer-interview-question
Describe android build process.
AAPT Tool
AAPT stands for android assets packaging tool. This tool comes with the Android SDK and present in $ANDROID_HOME/platform-tools/. It takes all the resources present in the res/ directory and compiles them. It generates a R.java file which contains ids of all the resources. Once you have installed the Android SDK you can directly execute the aapt commands.
* Android Build Process Steps
AAPT takes all the resources present in res/ directory and AndroidManifest.xml(meta data of android app) and compiles all the resources. It creates a R.java class which has all the resource ids.* Then all the java files including R.java gets compiled into byte code.
* Android application runs on dalvik vm so the byte code is cross compiled to the Dalvik byte code (.dex file)
* The .dex file and the compiled resources together forms the .apk file.
* Generated apk file is a debug build, to make a release build we need to sign the apk file using a key. You can do this from Android Studio.
* Once you sign the apk file it will be ready to use in production.