My android application is uploaded on google play, now I want to give update of my application but I am confused about android:versionCode and android:versionName.
I want to change version but how to do it? what is the rule of changing the version of application?
I am first time giving a update and this is my code:
android:versionCode="2"
android:versionName="2.0"
From the docs:
http://developer.android.com/tools/publishing/versioning.html
So in your case this needs to be
3, because this needs to be an integer value *relative* to your previous versions. When the system checks for an update it should know your current version is higher than the earlier one.Again, from the docs, this is just for the users display and actually can be anything. The system also doesn’t use it except for displaying it to the user. You can put any internal/custom version of your own here.
As an example if you were doing beta releases, your versionCodes could be
1,2,3...but your versionNames could be0.1,0.2,0.3..