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, we probably didn't pay much attention to the Versioncode and Versionname in the Manifest.xml file.
But in fact a good version of control, for us has a vital role.
Now intend to write something basic, suddenly think of this knowledge point, so on record down, as notes. There are not enough detailed or wrong places to welcome advice.
Versioning is critical for releasing new releases and maintenance of versions in development, and versioning is important for the following reasons:
1. When installing the app, users need to know the detailed version information, and when the existing version is upgraded, the correct installation of the new version is related to version control.
For example: When the app's versioncode=1 is installed on the phone, the version number of the upgrade update is 2 (versioncode=2), and the app can install the update properly. Conversely, if the current app version number in the phone is 2, the version number of the same app that is upgraded or obtained from another channel is 1, then the replacement installation fails.
This means that the same app's low version does not directly overwrite the high-version app that already exists in the installed phone (judged by version number (Versioncode)).
This gives us an improved maintainability and security of the software during the application upgrade maintenance process.
2. There is a reliable guarantee for other applications that want to search for or invoke the specified version number and version name.
When we publish multiple versions of the app on the market, such as different versions of the different types of terminals, we can use version control to find the right app.
3. For our own version of the update system or third-party app market, also through the version number and version name to find and user terminal equipment or the application of the Terminal app to show to the user. For the third-party app market, this version is even more critical, the decision to download the user after the compatibility of the judgment play a certain role in control.
So versioning cannot be overlooked, and we can control the applications we post to the market with effective versioning to get a better user experience.
Introduction to the importance of Android version number and version name