Quantcast
Channel: Shiitake's tumblr.
Viewing all articles
Browse latest Browse all 46471

" SIM情報を取得する TelephonyManager mTelephonyManager =..."

$
0
0

SIM情報を取得する



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


12-20 22:47:54.145: INFO/PHONE_SAMPLE(1018): getCallState():0
12-20 22:47:54.145: INFO/PHONE_SAMPLE(1018): getCellLocation():[8,1359987]
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): getDeviceSoftwareVersion():354957032005962
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): getDeviceSoftwareVersion():00
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): getLine1Number():*********
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): getNetworkCountryIso():jp
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): getNetworkOperator():44010
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): getNetworkOperatorName():NTT DOCOMO
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): getNetworkType():8
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): getSimCountryIso():jp
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): getSimOperator():44010
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): getSimOperatorName():NTT DoCoMo
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): getSimSerialNumber():*******************
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): getSimState():5
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): getSubscriberId():***************
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): getVoiceMailAlphaTag():Voicemail
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): getVoiceMailNumber():null
12-20 22:47:54.154: INFO/PHONE_SAMPLE(1018): isNetworkRoaming():false



- SIM情報を取得する - Android 1000 tips

Viewing all articles
Browse latest Browse all 46471

Trending Articles