@ThreadSafe public final class AppBuildInfo extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getApplicationName(Context context)
Gets the name of the application or the package name if the application has no name.
|
static int |
getVersionCode(Context context)
Gets the "versionCode" in the AndroidManifest.
|
static String |
getVersionName(Context context)
Gets the "versionName" in the AndroidManifest.
|
public static int getVersionCode(Context context)
context - Application context.PackageInfo.versionCodepublic static String getVersionName(Context context)
context - Application context.PackageInfo.versionNamepublic static String getApplicationName(Context context)
context - Application context.