기술참고자료/Android | 2011. 4. 19. 16:13
parser.register("+CIMI", new AtCommandHandler() {});
@Override
public AtCommandResult handleActionCommand() {
// AT+CIMI
String imsi = mPhone.getSubscriberId();
if (imsi == null || imsi.length() == 0) {
return reportCmeError(BluetoothCmeError.SIM_FAILURE);
} else {
return new AtCommandResult(imsi);
}
}
String phoneIMSI =방법3.
android.os.SystemProperties.get(android.telephony.TelephonyProperties.PROPERTY_IMSI);
String phoneIMEI =
android.os.SystemProperties.get(android.telephony.TelephonyProperties.PROPERTY_IMEI);
TelephonyManager mTelephonyMgr =
(TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
String imsi = mTelephonyMgr.getSubscriberId();
String imei = mTelephonyMgr.getDeviceId();
String phoneNumber = mTelephonyMgr.getLine1Number();
<supports-screens> Guide (1) | 2011.04.19 |
---|---|
<support-screen> (0) | 2011.04.19 |
단말정보 조회관련 정보 (0) | 2011.04.19 |
Android Graphics Example - Bitmap Image (1) | 2011.04.16 |
Android Graphics Example (0) | 2011.04.15 |
Recent Comments