public class Constants
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANDROID_BUILD
The device's OS build.
|
static java.lang.String |
ANDROID_VERSION
The device's OS version.
|
static java.lang.String |
APP_PACKAGE
The app's package name.
|
static java.lang.String |
APP_VERSION
The app's version code.
|
static java.lang.String |
APP_VERSION_NAME
The app's version name.
|
static java.lang.String |
BASE_URL
HockeyApp API URL.
|
static java.lang.String |
FILES_DIRECTORY_NAME |
static java.lang.String |
PHONE_MANUFACTURER
The device's model manufacturer name.
|
static java.lang.String |
PHONE_MODEL
The device's model name.
|
static java.lang.String |
SDK_NAME
Name of this SDK.
|
static java.lang.String |
SDK_USER_AGENT
The user agent string the SDK will send with every HockeyApp API request.
|
static java.lang.String |
SDK_VERSION
Version of the SDK - retrieved from the build configuration.
|
static int |
UPDATE_PERMISSIONS_REQUEST
Permissions request for the update task.
|
Constructor and Description |
---|
Constants() |
Modifier and Type | Method and Description |
---|---|
static java.util.concurrent.Future<java.lang.String> |
getDeviceIdentifier() |
static java.io.File |
getHockeyAppStorageDir(android.content.Context context)
Returns a file representing the folder in which screenshots are stored.
|
static void |
loadFromContext(android.content.Context context)
Initializes constants from the given context.
|
public static final java.lang.String BASE_URL
public static final java.lang.String SDK_NAME
public static final java.lang.String SDK_VERSION
public static final java.lang.String FILES_DIRECTORY_NAME
public static final java.lang.String SDK_USER_AGENT
public static final int UPDATE_PERMISSIONS_REQUEST
public static java.lang.String APP_VERSION
public static java.lang.String APP_VERSION_NAME
public static java.lang.String APP_PACKAGE
public static java.lang.String ANDROID_VERSION
public static java.lang.String ANDROID_BUILD
public static java.lang.String PHONE_MODEL
public static java.lang.String PHONE_MANUFACTURER
public static java.util.concurrent.Future<java.lang.String> getDeviceIdentifier()
public static void loadFromContext(android.content.Context context)
context
- The context to use. Usually your Activity object.public static java.io.File getHockeyAppStorageDir(android.content.Context context)