code: public static boolean isVersionDownloadableNewer(Activity mActivity, String versionDownloadable) {
          String versionInstalled = null;
          try {
              versionInstalled = mActivity.getPackageManager().getPackageInfo(mActivity.getPackageName(), 0).versionName;
          } catch (PackageManager.NameNotFoundException ignored) {
          }
          if (versionInstalled.equals(versionDownloadable)) { // If it is equal, no new version downloadable
              return false;
          } else {
              return versionCompareNumerically(versionDownloadable, versionInstalled) > 0; // Return if the versionDownloadble is newer than the installed
          }
      }
docs: Compare the string versionDownloadable to the version installed of the app.
  
  @param versionDownloadable String to compare to the version installed of the app.