最佳答案
我试图把我的设备 ID 带到 Logcat,但是安卓工作室给了我这个警告。
不推荐使用 getstring 获取设备标识符
String deviceID = Settings.Secure.getString(getApplicationContext().getContentResolver(),
Settings.Secure.ANDROID_ID);
为什么不推荐呢?