public class SettingsHelper extends Object
Constructor and Description |
---|
SettingsHelper(Context context) |
Modifier and Type | Method and Description |
---|---|
String |
onBackupValue(String name,
String value) |
void |
restoreValue(Context context,
ContentResolver cr,
ContentValues contentValues,
Uri destination,
String name,
String value)
Sets the property via a call to the appropriate API, if any, and returns
whether or not the setting should be saved to the database as well.
|
public SettingsHelper(Context context)
public void restoreValue(Context context, ContentResolver cr, ContentValues contentValues, Uri destination, String name, String value)
name
- the name of the settingvalue
- the string value of the setting