Java Code Examples for android.provider.Settings.System#putString()
The following examples show how to use
android.provider.Settings.System#putString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: a.java From letv with Apache License 2.0 | 5 votes |
private static String o(Context context, String str) { if (c(context, z[73])) { try { if (System.putString(context.getContentResolver(), z[72], str)) { return str; } } catch (Exception e) { z.e(); } } return null; }
Example 2
Source File: Device.java From letv with Apache License 2.0 | 4 votes |
private static boolean putSettingsString(Context context, String deviceId) { ContentResolver resolver = context.getContentResolver(); boolean ok = System.putString(resolver, KEY_DEVICE_ID, deviceId); System.putString(resolver, "persit.coolcloud.devid", deviceId); return ok; }