其他分享
首页 > 其他分享> > 如何在Android中获取Google Nexus 7 TAB的IMEI号码?

如何在Android中获取Google Nexus 7 TAB的IMEI号码?

作者:互联网

我使用以下代码获取Google Nexus 7标签的IMEI号码.
 我无法得到.如何获取Google Nexus 7的IMEI号码?

TelephonyManager telephonyManager = (TelephonyManager) context
                .getSystemService(Context.TELEPHONY_SERVICE);
        return telephonyManager.getDeviceId();

解决方法:

如果我没有错,谷歌nexus 7没有任何SIM卡.因此,如果没有SIM卡,则无法获取设备的IMEI号码,因为IMEI是依赖于gsm网络的网络.因此,如果设备只是wifi,则无法通过IMEI识别设备.您可以改用MAC地址.

标签:android,nexus-7
来源: https://codeday.me/bug/20190718/1491573.html