📌  相关文章
📜  以编程方式获取设备 ID android - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:21.646000             🧑  作者: Mango

代码示例1
//first add this to mainfirst


//and this in java
TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
telephonyManager.getDeviceId();