com.github.droidfu.support
Class DiagnosticSupport
java.lang.Object
com.github.droidfu.support.DiagnosticSupport
public class DiagnosticSupport
- 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
DiagnosticSupport
public DiagnosticSupport()
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 © 2011. All Rights Reserved.