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.