public class SystemPropertiesProxy extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
get(String key,
String def)
Get the value for the given key in the Android system properties
|
Boolean |
getBoolean(String key,
boolean def)
Get the value for the given key in the Android system properties, returned
as a boolean.
|
static SystemPropertiesProxy |
getInstance()
Gets the singleton instance for this class
|
void |
setClassLoader(ClassLoader cl)
Sets the classloader to lookup the class for android.os.SystemProperties
|
public static SystemPropertiesProxy getInstance()
public void setClassLoader(ClassLoader cl) throws ClassNotFoundException, SecurityException, NoSuchMethodException
cl - desired classloaderClassNotFoundException - android.os.SystemProperties class not foundSecurityException - security manager does not allow class loadingNoSuchMethodException - get/getBoolean method does not existpublic String get(String key, String def) throws IllegalArgumentException
key - the key to lookupdef - a default value to returnIllegalArgumentException - if the key exceeds 32 characterspublic Boolean getBoolean(String key, boolean def) throws IllegalArgumentException
key - the key to lookupdef - a default value to returnIllegalArgumentException - if the key exceeds 32 charactersCopyright © 2005–2014 QOS.ch. All rights reserved.