aspose file tools*
The moose likes Android and the fly likes best name for versioncode and version name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "best name for versioncode and version name" Watch "best name for versioncode and version name" New topic
Author

best name for versioncode and version name

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1085
I try to update my application in google play.should i use 2 as a version name and version code?
anyway it doesn't allow to update with version code1.
Lionel Gosseries
Greenhorn

Joined: May 16, 2013
Posts: 3
http://support.andromo.com/kb/distributing/how-to-update-your-app-in-google-play

Update your Version

In order to update your application in Google Play you will need to increase your application's version first. You can adjust this setting from the "App Info" tab when you are editing your project. After updating the version build your app again and download the new Android Package file (APK) the represents your updated application.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41524
    
  53
The version code needs to be a monotonically increasing integer. The version name can be anything you want it to be - you may want to use the generally recognized x.y.z notation.


Ping & DNS - my free Android networking tools app
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1085
tnx all.anyway after uploading 2nd version

1)Does it automatically ask to updated to the new version or we have to write the code for it?(when user has internet connection )
2)when user try to install new version does it update or install new version as a new application ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41524
    
  53
You don't have to write any code. When the user next visits the Play Store, the app will be listed as having an update available (at which point the user can choose to update).

It's an update - the old app will be gone, but all data and preferences are preserved.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: best name for versioncode and version name