Versions play a key role in every aspect of the product, here product may be a app, mobile and anything.Version code clearly shows that there is a update in the product they are using.When the updates are like 1.0.1, 1.02 and so on there might be a few changes regarding designs or app fixes and minor bugs but when the app version changed from 1.0 to 2.0 then we can notice a quite a bit of change in app key functionalities.Know your android app version in this tutorial.

Every now and then there is a update in the apps so updating  a app is quite common and to let users know which version of app they are using is a minimum feature every app should have.

When you are developing the app for the first time it will be like version code 1 and version name 1.0

You can find version in build.gradle(Module:app)


As the app updates to further level both version code and name have to be updated accordingly i.e., version code will be 2 and version name may be incremented as 1.0.1. 1.0.2…

You cannot update app with same version code where as you have a flexibility regarding version name but its a best practice to update it.But in both the cases they cannot be decremented.

And also when you upload a new version you can request user to update their app with the new updated one if you know the app version they are using these are the uses of app version codes.



Now lets start




and now







Like and share for more tutorials.

Show Buttons
Hide Buttons
Read previous post:
Android Tutorial on Retrofit Library || Retrofit Android Example