1> Get TelephonyManager
TelephonyManager telMgr = (TelephonyManager) getSystemService (TELEPHONY_SERVICE );
2> Get SIM card status
TelMgr. getSimState ();
3> Get SIM card number
TelMgr. getSimSerialNumber ();
4> Get SIM card supplier number
TelMgr. getSimOperator ();
5> Get SIM card Supplier name
TelMgr. getSimOperatorName ();
6> obtain the country of the SIM card
TelMgr. getSimCountryIso ();
7> retrieve mobile phone type
TelMgr. getPhoneType ();
8> obtain the network type
TelMgr. getNetworkType ();
9> get the network supplier number
TelMgr. getNetworkOperator ();
10> get the network vendor name
TelMgr. getNetworkOperatorName ();
11> Get mobile phone number
TelMgr. getLine1Number ();
// Roaming status
TelMgr. isNetworkRoaming ();
// IMEI
TelMgr. getDeviceSoftwareVersion ();
// IMSI
TelMgr. getSubscriberId ();
ContentResolver cv = sampleactivitysubmit this. getContentResolver ();
String tmpS = "";
// Whether or not Bluetooth is enabled
TmpS = android. provider. Settings. System. getString (cv, android. provider. Settings. System. effecth_on );
// Whether WIFI is enabled
TmpS = android. provider. Settings. System. getString (cv, android. provider. Settings. System. WIFI_ON );
// Whether the flight mode is enabled
TmpS = android. provider. Settings. System. getString (cv, android. provider. Settings. System. AIRPLANE_MODE_ON );
// Whether data roaming is enabled
TmpS = android. provider. Settings. System. getString (cv, android. provider. Settings. System. DATA_ROAMING );