Android 取本机号码和IMEI号以及运营商
作者:互联网
TelephonyManager telephoneyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
String imei = telephoneyManager.getDeviceId();
String sOwnNumber = telephoneyManager.getLine1Number();
String sServer = telephoneyManager.getNetworkOperatorName();
<uses-permission android:name="android.permission.READ_PHONE_STATE" /><!-- 读取本机号码和IMEI权限 -->
标签:String,SERVICE,机号码,取本,TelephonyManager,telephoneyManager,getLine1Number,IMEI 来源: https://blog.51cto.com/u_15298588/3034403