Android Development packages the project into APK

Source: Internet
Author: User

Ext.: http://blog.csdn.net/luoyin22/article/details/7862742

After you finish an Android project, how can you post the project to the Internet for others to use? We need to package our programs into Android package files--apk (Android packages) with the suffix ". APK" appended. Upload the apk file directly to the Android emulator or Android phone to perform the installation. The Android system requires an application with its developer-signed private key to be installed. Generating a digital signature and packaging a project into an APK can take the command line, but with the wizards in eclipse it's easier to complete the process, and the process of packaging the release is simple. The following is an example of "Hello World" developed earlier, demonstrating how to build an apk.

Right-click the project name, select "Android Tools" and select "Export Signed Application Package ..." as shown in.


Go to the page shown on the left and click the "next>" button to enter the window as shown in the image on the right.

Where location is where the library will be stored, password is the password of the certificate store.

When you package a program, the system requires that you use a digital certificate. If there is no digital certificate, we select "Create New KeyStore", and then click the "Browse ..." button to select the location where the certificate library will be saved and fill in the information, as shown in the image on the left. Click the Next> button, as shown in the image on the right.

Where alias is the name of the certificate, password is the password for the certificate, and validity is the specified certificate valid year.

If you already have a certificate, then you can select "Use existing KeyStore", then go directly to the location of the library and fill in the password, as shown in the left image, then fill in the password, click the "Next>" button, as shown in the image on the right.

Click the Browse ... button to select the location where you saved the file, as shown in.

"Destination apk file" Specifies the location of the APK store. Click the "Finish" button to complete the package.

Enter "D:\My Document" and you will see the generated helloworld.apk and Sharpandroid certificate Library.

We can publish the helloworld.apk file to the Internet, or you can publish it to Google's Android Market, and someone else can download it and install it on your phone.

(GO) Android development package the project into APK

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.