public class Constants extends Object
Copyright (c) 2009 nullwire aps Copyright (c) 2011-2014 Bit Stadium GmbH Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Modifier and Type | Field and Description |
---|---|
static String |
ANDROID_VERSION
The device's OS version.
|
static String |
APP_PACKAGE
The app's package name.
|
static String |
APP_VERSION
The app's version code.
|
static String |
APP_VERSION_NAME
The app's version name.
|
static String |
BASE_URL
HockeyApp API URL.
|
static String |
CRASH_IDENTIFIER
Unique identifier for crash reports.
|
static String |
FILES_PATH
Path where crash logs and temporary files are stored.
|
static String |
PHONE_MANUFACTURER
The device's model manufacturer name.
|
static String |
PHONE_MODEL
The device's model name.
|
static String |
SDK_NAME
Name of this SDK.
|
static String |
SDK_VERSION
Version of this SDK.
|
static String |
TAG
Tag for internal logging statements.
|
static int |
UPDATE_PERMISSIONS_REQUEST
Permissions request for the update task.
|
Constructor and Description |
---|
Constants() |
Modifier and Type | Method and Description |
---|---|
static File |
getHockeyAppStorageDir()
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 String FILES_PATH
public static String APP_VERSION
public static String APP_VERSION_NAME
public static String APP_PACKAGE
public static String ANDROID_VERSION
public static String PHONE_MODEL
public static String PHONE_MANUFACTURER
public static String CRASH_IDENTIFIER
public static final String TAG
public static final String BASE_URL
public static final String SDK_NAME
public static final String SDK_VERSION
public static final int UPDATE_PERMISSIONS_REQUEST
public static void loadFromContext(android.content.Context context)
context
- The context to use. Usually your Activity object.public static File getHockeyAppStorageDir()
Copyright © 2015. All Rights Reserved.