Some suggestions for Android APK version upgrade

Source: Internet
Author: User

For some suggestions on Android APK version upgrade, there is a need for friends to refer to below.

Well, it's okay to be busy.

Android has a version number of Versioncode,versionname two.

Versioncode is the main upgrade depends on parameters, only the same or greater than the case can be upgraded, so each version of this value needs to be self-increment.

Versionname is mainly used as a display mark to indicate that the version is that edition.

Integration test Release APK and the official on-line APK, recommended:

1. On-line, Versioncode takes a way to increase its self, such as 1 liters to 2, 20 liters to 21. However, the test is the same as the previous version of Versioncode.

The 2.versionName recommendation is written as the current version (such as 2.1) + packet date (such as 1125) + The day of the package (for example, the second package of the day is 02).

Give me a chestnut:

If a beta version of 2.1 is closed on November 25, the version number corresponds to the following (Versioncode and 2.0 are the same)

Versioncode:20

versionname:2.1.1125.01

If you want to send the 2.1 official version on the following day:

Versioncode:21

versionname:2.1.1126.01 (change here to 2.1 can also, not affect)

And then on the third day, 2.2 tests that way (and so on):

Versioncode:21

versionname:2.2.1127.01

Attention:

When publishing a version such as 2.1.1, Versioncode do not simply set to 211, and then the next 3.0 when the Versioncode is set to 30, so that 3.0 can not be upgraded, because 211>30.

In fact, in the original company's upgrade mechanism is fine, versionname is still the current version (such as 2.1) + packet date (such as 1125) + packet on the day of the first edition (if the second package of the day is 02), such as 2.1.1125.01, and then versioncode directly kill the decimal point 21112501, so the general situation Versioncode certainly is self-increasing, but if the cross-year is not good to do, to the next January, the date of the tragedy from 01XX began, but said back, to the next year will be the version of a level not on the end The United States to solve, should not have an apk to kill not to upgrade it ....

Reproduced in http://www.wl566.com/biancheng/156074.html

Some suggestions for Android APK version upgrade

Related Article

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.