public class Config
extends java.lang.Object
| Constructor and Description |
|---|
Config(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getConfigPath() |
java.lang.String |
getProperty(java.lang.String key)
Returns the property corresponding to the key
|
java.lang.String |
propertiesToString()
Translates the properties object to a String in format : key=value
|
void |
putProperty(java.lang.String key,
java.lang.String value)
Put a property, overwrites the current property if it exists
Creates a new one if it doesn't exist yet.
|
void |
removeProperty(java.lang.String key) |
void |
setAutostart(java.util.ArrayList<java.lang.String> locations)
Checks what bundles are checked and should be autostarted.
|
void |
setProperties(java.lang.String propertyString)
Set properties from string.
|
public void putProperty(java.lang.String key,
java.lang.String value)
key - Key of the property you want to putvalue - Value of the property you want to putpublic void setProperties(java.lang.String propertyString)
propertyString - Property string you want to usepublic java.lang.String getProperty(java.lang.String key)
key - Key of the property you want to retrievepublic void removeProperty(java.lang.String key)
public java.lang.String propertiesToString()
public void setAutostart(java.util.ArrayList<java.lang.String> locations)
public java.lang.String getConfigPath()