public static String getVersionName(final Context context) {
        final PackageInfo packageInfo = getPackageInfo(context);
        return packageInfo != null ? packageInfo.versionName : "";
    }
Get the current package version name if available.

@param context the context to use
@return the current package version name, or "" if unavailable
main/src/main/java/cgeo/geocaching/utils/Version.java