public class ATAKConstants
extends java.lang.Object
Constructor and Description |
---|
ATAKConstants() |
Modifier and Type | Method and Description |
---|---|
static void |
displayAbout(android.content.Context context,
boolean bDisplayEULA)
Helper method for displaying the about dialog with an optional capability to display the view
eula button.
|
static java.lang.String |
getAppName()
Returns the application name used in places by the launcher and as shown in
Android settings.
|
static java.lang.String |
getBrand()
Gets the brand for the software.
|
static android.content.ComponentName |
getComponentName() |
static java.lang.String |
getDeviceManufacturer() |
static java.lang.String |
getDeviceModel() |
static java.lang.String |
getDeviceOS() |
static java.lang.String |
getFullVersionName()
The full version name including the version name, version code and version brand.
|
static android.graphics.drawable.Drawable |
getIcon()
Returns the icon that is used by the launcher and corresponds with the icon
identifier obtained by the call getIconId().
|
static int |
getIconId()
Returns the icon resource identifier that is used by the launcher and as is shown
in Android settings.
|
static java.lang.String |
getPackageName()
Returns the package name for the software.
|
static java.lang.String |
getPluginApi(boolean bStrip)
Returns the android api target in the full form or in the stripped form
which only shows the value after the @ symbol.
|
static int |
getServerConnection(boolean connected)
Returns the appropriate server connection icon based on the current configuration of
the application.
|
static java.lang.String |
getVersionBrand()
Returns the app branding which is the CIV, MIL, etc.
|
static int |
getVersionCode() |
static java.lang.String |
getVersionName()
Returns the version name of the software which contains a human readable
representation of the version code such as 4.2.1
|
static java.lang.String |
getVersionNameManifest() |
static void |
init(android.content.Context context)
Public initialization of all of the string constants used within ATAK.
|
public static void init(android.content.Context context)
public static java.lang.String getAppName()
public static int getIconId()
public static android.graphics.drawable.Drawable getIcon()
public static int getServerConnection(boolean connected)
connected
- true if the connection icon should be connected.public static java.lang.String getBrand()
public static java.lang.String getPluginApi(boolean bStrip)
bStrip
- true returns the shortened API value, false returns the full value.public static java.lang.String getPackageName()
public static java.lang.String getVersionName()
public static int getVersionCode()
public static android.content.ComponentName getComponentName()
public static java.lang.String getVersionNameManifest()
public static java.lang.String getVersionBrand()
public static java.lang.String getDeviceOS()
public static java.lang.String getDeviceModel()
public static java.lang.String getDeviceManufacturer()
public static java.lang.String getFullVersionName()
public static void displayAbout(android.content.Context context, boolean bDisplayEULA)
context
- the activity to use when displaying the dialog.bDisplayEULA
- show the eula button.