Version Number Increment

1

I would like feedback and help for version number 1.0.0.1 (example).

How can I make this increment simple to stay automatic? Or, as is usually or good practice, increment this number before and after the "points"?

Thank you!

    
asked by anonymous 21.09.2016 / 15:10

1 answer

1

I add a field on the screen that I want to show the version and feed this field as follows:

  Date buildDate = new Date(BuildConfig.TIMESTAMP);
  idversion.setText("Versão: " + buildDate.toString());

Of course, you can format it as you want based on the current date.

    
21.09.2016 / 15:17