public final class Compatibility extends Object
Constructor and Description |
---|
Compatibility() |
Modifier and Type | Method and Description |
---|---|
static int |
getAPILevel()
Retrieves Android SDK API level using the best possible method.
|
static String |
getDropBoxServiceName()
Retrieve the DropBoxManager service name using reflection API.
|
public static int getAPILevel()
public static String getDropBoxServiceName() throws NoSuchFieldException, IllegalAccessException
NoSuchFieldException
- if the field DROPBOX_SERVICE doesn't exist.IllegalAccessException
- if the DROPBOX_SERVICE field is inaccessible.Copyright © 2010-2015. All Rights Reserved.