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