Android Development Note "Program install package APK production"

Source: Internet
Author: User

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"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.