Search code examples
androideclipsesubclipserevision

using svnversion (subclipse) with android - get revision number


I want to display the current revision number of my Android project to the user. I use the subclipse plugin for Eclipse and already found out that I somehow need the program svnversion.

I've found this answer, but I don't get at all where I have to change what and how I finally access the number to put it into a TextView. Also, I feel a bit sheepish about interfering with the Android build process.

Is there some easier explanation / example out there?

Kind regards, jellyfish


Solution

  • I would suggest not using the version control for showing version number. Revision numbers and app version are inherently different. You don't want to notch your app version for a spelling fix :-) .

    What you can do is set your version name in the manifest to refer a string from values/string.xml . You can then show this string in the app where ever needed.