In my application I want to check the version number from the server and when this versionName > myVersionName show a dialog.
verionName is from the server comes as "version": "1.0.0.1" , and myVersionName is like 1.0.0.2.
I want that when 1.0.0.1 > 1.0.0.2 show a dialog.
But this verionNames are Strings. how can I check this in String?
Please help me
String.compareTo()compares in lexicographical order which should work just fine with your version numbers. Note that it works with the current, simple version numbers, no guarantees it will work when versioning changes to like 10.0.0.1 or 1.0.0.1.1versionNamebe smaller than theapp'sversionname? even if it is ...you have to update the server versionName ? just after the release !