public static final class Settings.Global
extends Settings.NameValueTable
java.lang.Object
↳ android.provider.Settings.NameValueTable
↳ android.provider.Settings.Global
static int getInt(ContentResolver cr, String name)
static int getInt(ContentResolver cr, String name, int def)
Convenience function for retrieving a single secure settings value as an integer.
static String getString(ContentResolver resolver, String name)
Look up a name in the database.
static boolean putInt(ContentResolver cr, String name, int value)
Convenience function for updating a single settings value as an integer.
static boolean putString(ContentResolver resolver, String name, String value)
Store a name/value pair into the database.
// e.g.
final int value = Settings.Global.getInt(
MenuProvider.getInstance().getContext().getContentResolver(),
Settings.Global.AIRPLANE_MODE_ON, 0);
// e.g.
Settings.Global.putInt(context.getContentResolver(),Settings.Global.ADB_ENABLED, 1);
https://developer.android.com/reference/android/provider/Settings
https://developer.android.com/reference/android/provider/Settings.Global#summary