Android设备是否具有唯一ID,如果是这样,使用Java访问它的简单方法是什么?
公共静态 String getDeviceID(Context mContext) {
String deviceId = Settings.Secure.getString(mContext.getContentResolver(),
Settings.Secure.ANDROID_ID);
return deviceId;
}
Run Code Online (Sandbox Code Playgroud)
这显示了安全警告,
“不建议使用‘getString’来获取设备标识符”
如何解决这个警告?