Android packaging process:
website address:http://developer.android.com/tools/building/index.html
The specific packaging steps are as follows:
1: Generate R.java class files:R.java is automatically generated in Eclipse,ant and command line using the Android SDK to provide the Aapt.exe program generates R.java.
2: The. aidlfile Generation. javaclass file:Eclipseautomatically generated in theAntand command-line useAndroid SDKprovided byAidl.exeBuild. javafile.
3: Compiling. javaclass file GenerationClassFile:Eclipseautomatically generated in theAntand command-line useJdkof theJavaccompilingJavaclass file GenerationClassfile.
4: TheClassFile Package GenerationClasses.dexFile:Eclipseautomatically generated inAntand command-line useAndroid SDKprovided byDx.batcommand line script generationClasses.dexfile.
5: Package resource files (includingRes,Assets,Androidmanifest.xmlwait): Eclipseautomatically generated inAntand command-line useAndroid SDKprovided byAapt.exegenerate a resource bundle file
6: Generates unsignedapkinstallation files:Eclipseautomatically generated inDebugthe signature file is stored inBindirectory,Antand command-line useAndroid SDKprovided byApkbuilder.batcommand script to generate unsignedapkinstallation files.
7: sign the unsigned apk to create the signed android file:
8: Byte- aligned to the signed Android file;
Reference blog:
http://blog.csdn.net/jariwsz/article/details/6728337 ( full zero start write build.xml file )
Http://www.cnblogs.com/youngerbaby/archive/2013/05/18/3085548.html ( based on the Ant folder under the SDK build.xml )