"Go" method of publishing Android app to Android Market

Source: Internet
Author: User

Reprinted from: Http://www.stwind.org/android-market

To sign your program.

Precautions:

All programs submitted to the market must be signed. Unsigned programs cannot be installed.

You can use a personal certificate to sign the program, not necessarily authorized by the certification authority.

Programs signed with the Debug version certificate will not be published.

When you install a program, the signing certificate is detected as expired.

If the certificate expires after the installation, the program will work as expected.

You can use Keytool and jarsigner to generate a key and sign your program.

Your program will need to use zipalign to optimize after signing.

Recommendation: Sign All programs with the same key to ensure a seamless program upgrade.

The certificate should be valid for more than 25 years.

The certificate validity period of the program published to the market must be after October 22, 2033.

How to sign In addition to the methods mentioned below, there is a way to compile using the GUI.

In the Eclipse Package Explorer select the project to compile, File->export, open the Android folder, select Export android application, step by step to complete the wizard. This program will compile, sign, optimize, can be published directly to the market.? Get the appropriate private key to generate a private key via Keytool.

Keytool in the Jdk/bin directory (e.g. C:\Program files\java\jdk1.6.0_20\bin).

keytool parameters description
-genkey generate public and private keys
-V output details
-keystore <keystore-nam E>.keystore generated KeyStore file name
- Alias <alias Name>
-keyalg <alg> encryption algorithm. Supports DSA and RSA
-dname <name>
-validity <valdays> key validity, by number of days. Best >10000

For example: Keytool-genkey-v-keystore my-release-key.keystore-alias alias_name-keyalg rsa-validity 10000 More information about Keytool:

http://java.sun.com/j2se/1.5.0/docs/tooldocs/#security

Compiled release version of the program in the release state of the program is unsigned.

Export the unsigned release version of the apk file in Eclipse.

Locate the project you want to compile in the package Explorer, right-click to select Android Tools->export Unsigned application Package


The private key signature is used with the private key signature through Jarsigner.

Example: Jarsigner-verbose-keystore my-release-key.keystore my_application.apk alias_name Verifying the Signed program: Jarsigner-verify My_ signed.apk
Optimize apk files by zipalign to optimize APK files. Zipalign can be found under the Andorid sdk/tools directory.

For example: Zipalign-v 4 your_project_name-unaligned.apk your_project_name.apk your_project_name-unaligned.apk is input, your_ PROJECT_NAME.APK is the output. If you want to overwrite an existing file, you need to add the-f argument
There are two main ways to add version information, one is the version number of the program, and the other is the system API version number that is required in the program. Both need to be set in the Androidmanifest.xml.

The program version number Android:versionCode:int type, which can only be an integer. Other programs are used at the time of invocation and are not visible to the end user. Android:versionname: String type. is for the end user to see.

program requires the System API version number android:minsdkversion: To perform this program requires the lowest system API version Android:targetsdkversion: This programming when the target system API version of Android: Maxsdkversion: The highest system API version supported by this program
Prepare checklist for publishing before publishing: Before you consider publishing a program

1. Complete testing on real-world devices

2. Consider adding an end-User license agreement to your program

3. Add icons and captions to your program

4. Close and clean the log and debug information before making the final compilation

5. Add a version number

6. Get the right key

7. If the Mapview element is used, please register the maps API key after the program is compiled

8. Sign the program

9. Test the compiled program
Publisher app to Android Market

1. Registered Account: Http://market.android.com/publish

2. Before submitting the procedure, you must ensure that the program complies with the requirements of the Android Market server:

(1) The private key for signing the program must be valid after October 22, 2033.

(2) Android:versioncode and Android:versionname must be set in the program. The former is used for program updates, which are presented to end users.

(3) Android:icon and Android:label must be defined in the manifest of the program. if ($! = jQuery) {$ = Jquery.noconflict ();}
Steps are as follows

1. Upload your. apk file. (required)

2, if 2 games, requires 320w x 480h, 480w x 800h, or 480w x 854h,24 bit PNG or JPEG picture. (required)

3, upload high-definition icon, requires 512w x 512h of the full-bit PNG or JPEG image, maximum 1024KB. (required)

4, upload close-up images, requires 1024W x 500h of the bit PNG or JPEG pictures. (optional)

5, promotional video. First you need to upload to YouTube and then put the link here. (optional)

6. Select Exit Market after check, it takes 60 days to enter into force.

7. Select a language. There is no simplified Chinese yet. When you choose a language, you need to remove the unnecessary language.

8, write the title. (Fill in the selected language with a maximum of 30 letters)

9, write a description. (Fill in the selected language with a maximum of 4,000 letters)

10, write the next version of the changes, that is, we say the new version of the update. (English, up to 500 letters)

11, Product promotional advertising text. (English, up to 80 letters)

12. Choose the type of application (Application class, Game Class)

13, choose the type of app if you previously selected the application class, the following categories are displayed:

Comics Comics Communication Newsletter demo Demo Entertainment Entertainment Finance Finance financial Health Lifestyle Life Multimedia Multimedia News & Weather News and weather Productivity production reference reference shopping shopping social social software libraries Software Library sports Sports themes theme Tools Tool Travel Tour IF Previously selected is the game class, then displays: Arcade & Action action Adventure Class Brain & Puzzle Puzzle decryption class Cards & Casino Chess Gambling class casual Leisure class

14, fill in the price. Free and paid options are available. Note: If it is selected for free, it cannot be changed to pay later.

15, copy protection: If selected off, the application can be copied. If you choose on, Google will have measures to protect the copy situation.

16. Select Content level: Mature (for adults), teen (for teens), pre-teen (for children up to 10 years old), all (for all)

17, select the region: You can choose to show on a global scale, you can also choose a few countries.

18, fill in the official website.

19, contact the mailbox.

20, contact telephone.

21. Select, it means: My software complies with the Android content terms.

22, select, then said: I admit that my software is governed by the U.S. export laws, regardless of my country and region. I agree that I will comply with all relevant laws, including the encryption function of applicant information. I hereby certify that my software is licensed for export from the United States.

Then click Publish to publish the software.

You can also click Save or click Delete.

"Go" to publish Android app to Android Market method

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.