Java Code Examples for android.provider.Settings.System#getString()

The following examples show how to use android.provider.Settings.System#getString() . 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: Device.java    From letv with Apache License 2.0 5 votes vote down vote up
public static String getFreeCallDeviceId(Context context) {
    if (!TextUtils.isEmpty(m2)) {
        return m2;
    }
    String imei = getIMEI(context);
    String AndroidID = System.getString(context.getContentResolver(), "android_id");
    String _m2 = getMD5("" + imei + AndroidID + getDeviceSerialForMid2());
    m2 = _m2;
    return _m2;
}
 
Example 2
Source File: a.java    From letv with Apache License 2.0 5 votes vote down vote up
private static String n(Context context, String str) {
    if (c(context, z[73])) {
        try {
            str = System.getString(context.getContentResolver(), z[72]);
        } catch (Exception e) {
            z.e();
        }
    }
    return str;
}
 
Example 3
Source File: Device.java    From letv with Apache License 2.0 4 votes vote down vote up
private static String getSettingsString(Context context) {
    ContentResolver resolver = context.getContentResolver();
    String value = System.getString(resolver, KEY_DEVICE_ID);
    return empty(value) ? System.getString(resolver, "persit.coolcloud.devid") : value;
}