Package Android into APK

Source: Internet
Author: User

After completing the android project, you need to package the program into an APK file (Android package) with the suffix ". APK ". The packaged APK file can be installed and run on the android simulator or Android mobile phone.
Android requires apps with private keys signed by developers to be installed.
You can use the command line method to package and generate a digital signature for an android project, but the wizard in eclipse can complete the entire process conveniently and quickly.

Take helloworld as an example to describe how to generate an APK.

<1>After the android project is compiled and run, right-click the project name and choose"Android tools", Then select"Export signed application package..."(The application package that outputs the signature ).

Click Next to enter the keystore settings window. Here, location is the directory address of the certificate, and password/comfirm is the password of the certificate.

<2>The system requires a digital certificate 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 Next to set the certificate information. Alias: the name of the digital certificate; password/comfirm: the password of the certificate; validity (years): The validity period of the certificate; Other information as needed.

After setting the certificate information, click "Next" to complete APK packaging, as shown in. The generated APK file is: e: \ Android \ keystore \ helloworld.apk.

<3>If you already have a digital certificate, you can select "use existing keystore", click the browser button to select, enter the password, and click Next 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, generate an APK FileE: \ Android \ keystore \ helloworld.apk.

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.