本文整理汇总了Java中android.provider.Settings.System.getString方法的典型用法代码示例。如果您正苦于以下问题:Java System.getString方法的具体用法?Java System.getString怎么用?Java System.getString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.provider.Settings.System
的用法示例。
在下文中一共展示了System.getString方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: n
import android.provider.Settings.System; //导入方法依赖的package包/类
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;
}
示例2: getFreeCallDeviceId
import android.provider.Settings.System; //导入方法依赖的package包/类
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;
}
示例3: b
import android.provider.Settings.System; //导入方法依赖的package包/类
protected final String b() {
String string;
synchronized (this) {
Log.i("MID", "read mid from Settings.System");
string = System.getString(this.e.getContentResolver(), h.f
("4kU71lN96TJUomD1vOU9lgj9Tw=="));
}
return string;
}
示例4: getDeviceId
import android.provider.Settings.System; //导入方法依赖的package包/类
public String getDeviceId() {
String androidId = System.getString(this.mCtx.getContentResolver(),
Secure.ANDROID_ID);
String androidBase = "androidDeviceId-";
if (androidId == null) { // This happens when running in the Emulator
final String emulatorId = "android-RunningAsTestingDeleteMe";
return emulatorId;
}
String deviceId = androidBase.concat(androidId);
return deviceId;
}
示例5: getDeviceId
import android.provider.Settings.System; //导入方法依赖的package包/类
public static String getDeviceId(ContentResolver contentResolver)
{
String androidId = System.getString(contentResolver, System.ANDROID_ID);
String androidBase = "androidDeviceId_";
if (androidId == null) { // This happens when running in the Emulator
final String emulatorId = "android-RunningAsTestingDeleteMe";
return emulatorId;
}
String deviceId = androidBase.concat(androidId);
return deviceId;
}
示例6: getSettingsString
import android.provider.Settings.System; //导入方法依赖的package包/类
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;
}
示例7: f
import android.provider.Settings.System; //导入方法依赖的package包/类
public String f(String str, String str2) {
return !this.e ? str2 : System.getString(this.f.getContentResolver(), str);
}