com.github.ignition.support
Class IgnitedDiagnostics
java.lang.Object
com.github.ignition.support.IgnitedDiagnostics
public class IgnitedDiagnostics
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ANDROID_API_LEVEL
public static final int ANDROID_API_LEVEL
ICS
public static final int ICS
- See Also:
- Constant Field Values
HONEYCOMB
public static final int HONEYCOMB
- See Also:
- Constant Field Values
GINGERBREAD
public static final int GINGERBREAD
- See Also:
- Constant Field Values
FROYO
public static final int FROYO
- See Also:
- Constant Field Values
ECLAIR
public static final int ECLAIR
- See Also:
- Constant Field Values
DONUT
public static final int DONUT
- See Also:
- Constant Field Values
CUPCAKE
public static final int CUPCAKE
- See Also:
- Constant Field Values
SUPPORTS_ICS
public static final boolean SUPPORTS_ICS
SUPPORTS_HONEYCOMB
public static final boolean SUPPORTS_HONEYCOMB
SUPPORTS_GINGERBREAD
public static final boolean SUPPORTS_GINGERBREAD
SUPPORTS_FROYO
public static final boolean SUPPORTS_FROYO
SUPPORTS_ECLAIR
public static final boolean SUPPORTS_ECLAIR
SUPPORTS_DONUT
public static final boolean SUPPORTS_DONUT
SUPPORTS_CUPCAKE
public static final boolean SUPPORTS_CUPCAKE
IgnitedDiagnostics
public IgnitedDiagnostics()
isTest
public static boolean isTest()
setTestApiLevel
public static void setTestApiLevel(int androidApiLevel)
supportsApiLevel
public static boolean supportsApiLevel(int apiLevel)
getAndroidId
public static String getAndroidId(android.content.Context context)
- Returns the ANDROID_ID unique device ID for the current device. Reading that ID has changed
between platform versions, so this method takes care of attempting to read it in different
ways, if one failed.
- Parameters:
context
- the context
- Returns:
- the device's ANDROID_ID, or null if it could not be determined
- See Also:
Settings.Secure.ANDROID_ID
getAndroidId
public static String getAndroidId(android.content.Context context,
String fallbackValue)
- Same as
getAndroidId(Context)
, but never returns null.
- Parameters:
context
- the contextfallbackValue
- the fallback value
- Returns:
- the device's ANDROID_ID, or the fallback value if it could not be determined
- See Also:
Settings.Secure.ANDROID_ID
getApplicationVersionString
public static String getApplicationVersionString(android.content.Context context)
createDiagnosis
public static String createDiagnosis(android.app.Activity context,
Exception error)
Copyright © 2012. All Rights Reserved.