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);