org.acra.collector
Class Compatibility
java.lang.Object
org.acra.collector.Compatibility
public final class Compatibility
- extends Object
Utility class containing methods enabling backward compatibility.
- Author:
- Normal
Method Summary |
static int |
getAPILevel()
Retrieves Android SDK API level using the best possible method. |
static String |
getDropBoxServiceName()
Retrieve the DropBoxManager service name using reflection API. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Compatibility
public Compatibility()
getAPILevel
public static int getAPILevel()
- Retrieves Android SDK API level using the best possible method.
- Returns:
- The Android SDK API int level.
getDropBoxServiceName
public static String getDropBoxServiceName()
throws NoSuchFieldException,
IllegalAccessException
- Retrieve the DropBoxManager service name using reflection API.
- Returns:
- Name of the DropBox service regardless of Android version.
- Throws:
NoSuchFieldException
- if the field DROPBOX_SERVICE doesn't exist.
IllegalAccessException
- if the DROPBOX_SERVICE field is inaccessible.
Copyright © 2010-2013. All Rights Reserved.