1>獲得TelephonyManager
TelephonyManager telMgr = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);
2>擷取SIM卡狀態
telMgr.getSimState();
3>擷取SIM卡卡號
telMgr.getSimSerialNumber();
4>擷取SIM卡供貨商號
telMgr.getSimOperator();
5>擷取SIM卡供貨商名稱
telMgr.getSimOperatorName();
6>擷取SIM卡國別
telMgr.getSimCountryIso();
7>擷取手機類型
telMgr.getPhoneType();
8>擷取網路類型
telMgr.getNetworkType();
9>擷取網路供應商號
telMgr.getNetworkOperator();
10>擷取網路供應商名稱
telMgr.getNetworkOperatorName();
11>獲得手機號碼
telMgr.getLine1Number();
//漫遊狀態
telMgr.isNetworkRoaming();
//IMEI
telMgr.getDeviceSoftwareVersion();
//IMSI
telMgr.getSubscriberId();
ContentResolver cv = SampleActivity20.this.getContentResolver();
String tmpS = "";
//藍芽是否開啟
tmpS = android.provider.Settings.System.getString(cv,android.provider.Settings.System.BLUETOOTH_ON);
//WIFI是否開啟
tmpS = android.provider.Settings.System.getString(cv,android.provider.Settings.System.WIFI_ON);
//飛航模式是否開啟
tmpS = android.provider.Settings.System.getString(cv,android.provider.Settings.System.AIRPLANE_MODE_ON);
//數據漫遊是否開啟
tmpS = android.provider.Settings.System.getString(cv,android.provider.Settings.System.DATA_ROAMING);