|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.os.SystemProperties
public class SystemProperties
Gives access to the system properties store. The system properties store contains a list of string key-value pairs.
| Field Summary | |
|---|---|
static int |
PROP_NAME_MAX
|
static int |
PROP_VALUE_MAX
|
| Constructor Summary | |
|---|---|
SystemProperties()
|
|
| Method Summary | |
|---|---|
static String |
get(String key)
Get the value for the given key. |
static String |
get(String key,
String def)
Get the value for the given key. |
static boolean |
getBoolean(String key,
boolean def)
Get the value for the given key, returned as a boolean. |
static int |
getInt(String key,
int def)
Get the value for the given key, and return as an integer. |
static long |
getLong(String key,
long def)
Get the value for the given key, and return as a long. |
static void |
set(String key,
String val)
Set the value for the given key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PROP_NAME_MAX
public static final int PROP_VALUE_MAX
| Constructor Detail |
|---|
public SystemProperties()
| Method Detail |
|---|
public static String get(String key)
IllegalArgumentException - if the key exceeds 32 characters
public static String get(String key,
String def)
IllegalArgumentException - if the key exceeds 32 characters
public static int getInt(String key,
int def)
key - the key to lookupdef - a default value to return
IllegalArgumentException - if the key exceeds 32 characters
public static long getLong(String key,
long def)
key - the key to lookupdef - a default value to return
IllegalArgumentException - if the key exceeds 32 characters
public static boolean getBoolean(String key,
boolean def)
key - the key to lookupdef - a default value to return
IllegalArgumentException - if the key exceeds 32 characters
public static void set(String key,
String val)
IllegalArgumentException - if the key exceeds 32 characters
IllegalArgumentException - if the value exceeds 92 characters
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||