Android 获取信息终端
2010-08-23 11:19:00 来源:WEB开发网核心提示:获取SIM卡提供国家代码(ISO)Java代码TelephonyManager telManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);telManager.getSimCountryIso();TelephonyManage
获取SIM卡提供国家代码(ISO)
Java代码
TelephonyManager telManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
telManager.getSimCountryIso();
TelephonyManager telManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
telManager.getSimCountryIso();
SIM卡的序列号
Java代码
TelephonyManager telManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
telManager.getSimSerialNumber();
TelephonyManager telManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
telManager.getSimSerialNumber();
获取其他信息以此类推
AndroidManifest.xml必须以下设置
Xml代码
< uses-permission android:name="android.permission.READ_PHONE_STATE" />
[]
更多精彩
赞助商链接