Resource Source: http://blog.csdn.net/qualcent/article/details/6959547
After completing the Android project, you will need to package the program into an APK file (Android packages) with the prefix ". apk" appended. The packaged apk file can be run on an Android emulator or Android phone.
The Android system requires an application with a developer-signed private key to be installed.
Android projects can use the command line to package and generate digital signatures, but wizards in eclipse can quickly and easily complete the process.
Take HelloWorld as an example of how to build an apk.
<1> After the Android project is compiled and run, right-click on the project name, select "Android Tools" and select "Export signed Applicationpackage ..." (Output the signed application package).
Click the Next button directly to enter the KeyStore settings window. Where location is the directory address of the certificate, Password/comfirm is the password for the certificate.
<2> The system requires the use of digital certificates when packaging a program. If you do not have a digital certificate, select "Create New KeyStore", set the directory address and password, and create a new digital certificate.
Click the Next button to set the certificate information. Alias: The name of the digital certificate; password/comfirm: the password for the certificate; validity (years): The validity period of the certificate, and other information as required.
After completing the certificate information settings, click the Next button to complete the APK package, as shown in the generated apk file: E:\Android\keystore\HelloWorld.apk.
<3> If you already have a digital certificate, you can select "Use existing KeyStore" and then click the Browser button to select, enter the password and click the Next button to proceed. If you do not have a digital certificate, select "Create New KeyStore", set the directory address and password, and create a new digital certificate.
Similarly, build apk file E:\Android\keystore\HelloWorld.apk.
Android Development Note "Program install package APK production"