What Is Android App Version Code?
Contents

Introduction. Version code is a special integer value which works as an internal version number. It is not visible to end users. Android system uses this number to protect against application downgrades — it is not possible to install new application with version code lower than in currently installed application.

What is version name and version code in Android?

Version Code & Version Name

As you may know, on android you have to define two version fields for an app: the version code (android:versionCode) and the version name (android:versionName). The version code is an incremental integer value that represents the version of the application code.

How do I find the Android version number?

int versionCode = BuildConfig. VERSION_CODE; The version name is used to show the users or the developers of the development sequence. You can add any kind of version name as you want.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest