Android development package the project into an APK

Source: Internet
Author: User

After an android project is completed, how can I publish the project to the internet for use by others? We need to package our program into the android installation package file APK (Android package) with the suffix ". APK ". Upload the APK file directly to the android simulator or Android mobile phone for installation. Android requires applications with private keys signed by developers to be installed. You can use the command line method to generate a digital signature and package the project into an APK. However, using the wizard in eclipse, we can complete the entire process more conveniently. The package and release process is very simple. The following example shows how to generate an APK.

Right-click the project name, select "android Tools", and then select "Export signed application package... ", As shown in.

 


Go to the page shown in the left figure, and click "next>" to enter the window shown in the right figure.

 

Here, location is the location where the certificate store will be stored, and password is the password of the certificate store.

When packaging a program, the system requires a digital certificate. If there is no digital certificate, select "create new keystore" to create a new certificate library and click "Browse... "Click to select the location where the certificate store will be saved and fill in the information, as shown in the left figure. Click "next>", as shown in the right figure.

 

Alias indicates the name of the certificate, password indicates the password of the certificate, and validity indicates the validity Year of the certificate.

If you already have a certificate, you can select "use existing keystore", and then directly go to the certificate store and enter the password, as shown in the figure on the left. Then enter the password, click "next>", as shown in the right figure.

 

Click "Browse... "Button to select the file storage location, as shown in.

 

"Destination APK file" specifies the location where the APK is stored. Click Finish to complete the packaging.

Go to "D: \ My document" and check the generated helloworld.apk and sharpandroid certificate library.

You can publish the helloworld.apk file to the Internet or Google Android Market, and others can download it and install it on your mobile phone.

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.