Introduction to the importance of Android version number and version number names

Source: Internet
Author: User

Reprint Please specify source http://blog.csdn.net/y150481863/article/details/41249159, from "http://blog.csdn.net/y150481863"

When we first started to learn Android. There may not be much attention to the Versioncode and versionname located in the Manifest.xml file.

But in fact a good version number control, for we have to key data.

Now I'm going to write a little basic stuff. Suddenly think of this knowledge point, so on record down, as notes. There is not enough detail or the wrong place to welcome the generous enlighten.


Version number control is critical to advertise the new version number and maintenance of the version number in development, as the following are important reasons for version number control:

1. Users need to know the specific version number when installing the app, and when upgrading the existing version number. The correct installation of the new version number is related to version number control.

For example: When the app's versioncode=1 is installed on the phone, the updated version is 2 (versioncode=2), and the app installs the update properly.

Conversely, assume that the current app version in the phone is 2, the version of the same app that was upgraded or obtained from another channel is 1. Replacing the installation will fail at this time.

This means that the same app's low version number is not directly overwritten by the high version number that already exists in the installed phone (inferred by the version number (Versioncode)).

This gives us an improved maintainability and security of the software during the application upgrade maintenance process.

2. For other applications that want to search or invoke the specified version number and version number name, there is a reliable guarantee.

When we publish an app that has multiple versions on the market, for example, different version numbers correspond to different types of terminals. We were able to find the right app by version number control.

3. Update the system or third party app market for our own version number. Also through the version number and version number name to find and user terminal equipment or the application of the Terminal app to show the user. For the third-party app market, this version number is more critical to the decision to control the compatibility inference after the user has downloaded it.

So version number control cannot be ignored, we can control the application we publish to the market through the effective version number controlling, in order to get a better user experience.




How to set your app's version number and version number name, below to do a simple introduction. Versioncode-------based on the descriptive narrative above, the version number (Versioncode)? is a relatively important property of relative illumination. Versioncode is a value of type integer. So when you set the time, do not set the versioncode too large, it is best not to exceed the value of the integer range (of course, will not exceed), General people in the release of their first application to the market, the version number value is 1 (versioncode=1), This is also the typical and common practice of the moment. The value of Versioncode can then be incremented each time the update version number is advertised. The above description of the version number control importance is also described in the narrative, a new version of the application of the Versioncode can not be less than the previous version of the Versioncode value, or replace the update upgrade error. The system prompts you not to install. Of course. This is not mandatory, it is simply a question that must be considered when the application is officially published.
Versionname------This is a property with a value of type string, and the general and Versioncode appear in pairs. Versioncode is a valid value that is set to facilitate program developers to perform and maintain application.

Versionname is a descriptive narrative of a version number for the user to see. It is also a version number which is provided to the user on each 3rd party platform, which can be said to be the explanation and description of Versioncode. The general format can be: 1.1.2 (major.minor.point) Form.


Here is an example of a manifest.xml file:

The above code indicates that the current. APK is the second version number. The Versionname value of 1.1 shows that this version number is an optimized version number on the 1.0 version number, with a small difference and a 1.0 version number.

The assumption is that a UI style or application with a large tuning of the business logic, the version number usually rises a level, for example, should be defined as 2.0



???

Introduction to the importance of Android version number and version number names

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.