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.