Version for Android applications through eclipse

I know that the version of the application is defined in the manifest XML file, but is there any tool to set the version number in Eclipse without manually changing the manifest itself? Thank.

0
source share
3 answers

It depends on how you define "manually."

If you double-click the AndroidManifest.xml file in eclipse (and you have your environment configured), you should get a GUI with all the options you can choose. One of them on the very left tab is to change the version number, both the version name and version code.

Edit: more precisely:

  • Open the GUI editor AndroidManifest.xml.
  • Click the Manifest tab
  • .
+2

ant script xmltask . :

<target name="update.build.number">
    <xmltask source="AndroidManifest.xml" dest="AndroidManifest.xml">
        <replace path="manifest/@android:versionName"
                 withText="1.0.${buildnum}"/>
    </xmltask>
</target>

1.0.xxx, xxx ant buildnum. . , .

+3

Java. :   Android

:

  • versionName major.minor.point ( Android doc)
  • versionName can be saved, from reset to 1.0.0 or increment (one part and the final part are set / set to 0)
  • versionCode will be replaced by Unix Time

Hope this help :-)

0
source

All Articles