TelephonyManager mTelephonyManager = (TelephonyManager)getSystemService(Context.
TELEPHONY_SERVICE
);
int
callState = mTelephonyManager.getCallState();
CellLocation location = mTelephonyManager.getCellLocation();
String id = mTelephonyManager.getDeviceId();
String version = mTelephonyManager.getDeviceSoftwareVersion();
String no = mTelephonyManager.getLine1Number();
List ncell = mTelephonyManager.getNeighboringCellInfo();
String country = mTelephonyManager.getNetworkCountryIso();
String opco = mTelephonyManager.getNetworkOperator();
String opcoName = mTelephonyManager.getNetworkOperatorName();
int
netType = mTelephonyManager.getNetworkType();
String simCountry = mTelephonyManager.getSimCountryIso();
String simOpco = mTelephonyManager.getSimOperator();
String simOpcoName = mTelephonyManager.getSimOperatorName();
String simSerial = mTelephonyManager.getSimSerialNumber();
int
simState = mTelephonyManager.getSimState();
String subId = mTelephonyManager.getSubscriberId();
String vMailTag = mTelephonyManager.getVoiceMailAlphaTag();
String vNum = mTelephonyManager.getVoiceMailNumber();
Boolean roaming = mTelephonyManager.isNetworkRoaming();
Log.i(
TAG
,
"getCallState():"
+callState);
Log.i(
TAG
,
"getCellLocation():"
+location.toString());
Log.i(
TAG
,
"getDeviceSoftwareVersion():"
+id);
Log.i(
TAG
,
"getDeviceSoftwareVersion():"
+version);
Log.i(
TAG
,
"getLine1Number():"
+no);
for
(
int
i = 0; i < ncell.size(); i++){
Log.i(
TAG
,
"getNeighboringCellInfo():"
+ncell.get(i));
}
Log.i(
TAG
,
"getNetworkCountryIso():"
+country);
Log.i(
TAG
,
"getNetworkOperator():"
+opco);
Log.i(
TAG
,
"getNetworkOperatorName():"
+opcoName);
Log.i(
TAG
,
"getNetworkType():"
+netType);
Log.i(
TAG
,
"getSimCountryIso():"
+simCountry);
Log.i(
TAG
,
"getSimOperator():"
+simOpco);
Log.i(
TAG
,
"getSimOperatorName():"
+simOpcoName);
Log.i(
TAG
,
"getSimSerialNumber():"
+simSerial);
Log.i(
TAG
,
"getSimState():"
+simState);
Log.i(
TAG
,
"getSubscriberId():"
+subId);
Log.i(
TAG
,
"getVoiceMailAlphaTag():"
+vMailTag);
Log.i(
TAG
,
"getVoiceMailNumber():"
+vNum);
Log.i(
TAG
,
"isNetworkRoaming():"
+roaming);