How to package an Android program into an APK file

Source: Internet
Author: User

1. Generate KeyStore

Follow the command line below in the C:\Program files\java\jdk1.6.0_10\bin> directory, enter Keytool-genkey-alias Android.keystore- Keyalg rsa-validity 100000-keystore Android.keystore

Parameter meaning:-validity mainly is the validity of the certificate, write 100,000 days; spaces, backspace keys are counted.

The android.keystore file is generated in the C:\Program files\java\jdk1.6.0_10\bin> directory after the command executes. -1

Figure 1 Generating android.keystore under command line

2.eclipse Build apk file

Select the items you want to package, right-click –>android tools–>export signed Application package...-2

Figure-2 Eclipse Packaging Tool

The next step is to keep coming next. Only pictures are posted below, not explained.

Step 2: Select a packaged item

Step 3: Select the generated Android.keystore file and enter the password

Step 4: Select Alias key and enter the password

Step 5: Finally select the directory and file name to generate the Android APK file

The final generated apk file

This article goes from http://blog.csdn.net/renjanely/article/details/7918857, thanks to the author for sharing

How to package an Android program into an APK file

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.