1) generate a keystore
Run the following command in the C: \ Program Files \ Java \ jdk1.6.0 _ 10 \ bin> directory and enter keytool-genkey-alias android. keystore-keyalg RSA-validity 100000-keystore android. keystore
It indicates that-validity indicates the validity period of the certificate, which is set to 100000 days. The space and the Return key are counted as passwords.
After the command is executed, the android. keystore file is generated in the C: \ Program Files \ Java \ jdk1.6.0 _ 10 \ bin> directory. -1
Figure-1 generate android. keystore under the command line
2.) eclipse generates the apk File
Select the project to be packaged, right-click and choose Android tools> Export Signed Application Package... -2
Figure-2 eclipse packaging Tool
The next step is continuous next. Only the image is pasted below, which is not explained.
Step 2: select a packaged Project
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 for generating the android apk File
The final apk File