public static int compareVersion(String version1, String version2) {
        return Integer.compare(versionStringToInt(version1), versionStringToInt(version2));
    }
Compares two version strings. The strings will be converted to int and
compared by {@link Integer#compare(int, int)}.
@param version1
@param version2
@return -1 if version1 is older than version2, 0 if they are equal and 1 if
version1 is newer than version2.
src/android/Options.java