是否有唯一的Android设备ID?

Android设备是否有唯一的ID?如果有,使用Java访问它的简单方法是什么

Settings.Secure#ANDROID_ID为每个用户返回唯一的安卓ID64位十六进制字符串

导入android.provider.Settings.Secure;
私有字符串android_id=Secure.getString(getContext().getContentResolver(),
安卓(ANDROID),;

另请阅读唯一标识符的最佳实践:https://developer.android.com/training/articles/user-data-ids

发表评论