Commands to write or create .apk file?
1. use javac to compile your java files
2. use dx tool to convert all .class files to single dex file
3. use aapt tool or apkbuilder tool to generate .apk file, which contains manifest, .dex, and res.
.apk is equivalent to .jar in java.
aapt tool and dx tools are in android-sdk/platform-tools.
4. sign the apk file by using jarsigner tool of jdk/bin
5. zipalign your signed apk by using zipalign tool of android-sdk/tools
Back To Top