wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 1073
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: 41150
    
  45
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: 1073
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: 41150
    
  45
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: best name for versioncode and version name
 
Similar Threads
JavaFX application with JDK 1.6
Pattern for updating multiple rows in an array attribute.
Eclipse project: Jar will not be exported or published
file upload in Servlet
WinCVS : how to commit changes to a branch?