net.hockeyapp.android
Class Constants

java.lang.Object
  extended by net.hockeyapp.android.Constants

public class Constants
extends java.lang.Object

Description

Various constants and meta information loaded from the context.

License

 Copyright (c) 2009 nullwire aps
 Copyright (c) 2012 Codenauts UG
 
 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.
 

Author:
Mads Kristiansen, Glen Humphrey, Evan Charlton, Peter Hewitt, Thomas Dohmke

Field Summary
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 BASE_URL
          HockeyApp API URL.
static java.lang.String FILES_PATH
          Path where crash logs and temporary files are stored.
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_VERSION
          Version of this SDK.
static java.lang.String TAG
          Tag for internal logging statements.
 
Constructor Summary
Constants()
           
 
Method Summary
static void loadFromContext(Context context)
          Initializes constants from the given context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILES_PATH

public static java.lang.String FILES_PATH
Path where crash logs and temporary files are stored.


APP_VERSION

public static java.lang.String APP_VERSION
The app's version code.


APP_PACKAGE

public static java.lang.String APP_PACKAGE
The app's package name.


ANDROID_VERSION

public static java.lang.String ANDROID_VERSION
The device's OS version.


PHONE_MODEL

public static java.lang.String PHONE_MODEL
The device's model name.


PHONE_MANUFACTURER

public static java.lang.String PHONE_MANUFACTURER
The device's model manufacturer name.


TAG

public static final java.lang.String TAG
Tag for internal logging statements.

See Also:
Constant Field Values

BASE_URL

public static final java.lang.String BASE_URL
HockeyApp API URL.

See Also:
Constant Field Values

SDK_NAME

public static final java.lang.String SDK_NAME
Name of this SDK.

See Also:
Constant Field Values

SDK_VERSION

public static final java.lang.String SDK_VERSION
Version of this SDK.

See Also:
Constant Field Values
Constructor Detail

Constants

public Constants()
Method Detail

loadFromContext

public static void loadFromContext(Context context)
Initializes constants from the given context. The context is used to set the package name, version code, and the files dir.

Parameters:
context - The context to use. Usually your Activity object.