-
public final class VersionInfoUtils
-
-
Method Summary
Modifier and Type Method Description static StringgetFormattedVersion(Context context, String version)Returns the formatted version. static StringgetFormattedVersion(Context context, String packageName, String version)Returns the formatted version. static StringgetFormattedCopyright(Context context, String owner)Returns the formatted copyright. static StringgetFormattedCopyright(Context context, String packageName, String owner)Returns the formatted copyright. -
-
Method Detail
-
getFormattedVersion
static String getFormattedVersion(Context context, String version)
Returns the formatted version. To be used outside the dialog fragment, for instancein activity or preference titles.
- Parameters:
context- The almighty contextversion- The app's version
-
getFormattedVersion
static String getFormattedVersion(Context context, String packageName, String version)
Returns the formatted version. To be used outside the dialog fragment, for instancein activity or preference titles.
- Parameters:
context- The almighty contextpackageName- The app's package nameversion- The app's version
-
getFormattedCopyright
static String getFormattedCopyright(Context context, String owner)
Returns the formatted copyright. To be used outside the dialog fragment, for instancein activity or preference titles.
- Parameters:
context- The almighty contextowner- The app onwer.
-
getFormattedCopyright
static String getFormattedCopyright(Context context, String packageName, String owner)
Returns the formatted copyright. To be used outside the dialog fragment, for instancein activity or preference titles.
- Parameters:
context- The almighty contextpackageName- The app's package nameowner- The app onwer.
-
-
-
-