1.获取手机唯一识别号
添加AndroidManifest.xml权限
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
public static String getIdentifyNumber(Context context){ TelephonyManager telephonyManager=(TelephonyManager)context.getSystemService(context.TELEPHONY_SERVICE); return telephonyManager.getDeviceId(); }
原文:http://www.cnblogs.com/minyc/p/myc201601141629.html