• <i id='pfgSR'><tr id='pfgSR'><dt id='pfgSR'><q id='pfgSR'><span id='pfgSR'><b id='pfgSR'><form id='pfgSR'><ins id='pfgSR'></ins><ul id='pfgSR'></ul><sub id='pfgSR'></sub></form><legend id='pfgSR'></legend><bdo id='pfgSR'><pre id='pfgSR'><center id='pfgSR'></center></pre></bdo></b><th id='pfgSR'></th></span></q></dt></tr></i><div id='pfgSR'><tfoot id='pfgSR'></tfoot><dl id='pfgSR'><fieldset id='pfgSR'></fieldset></dl></div>
      <tfoot id='pfgSR'></tfoot>

      • <bdo id='pfgSR'></bdo><ul id='pfgSR'></ul>

      <legend id='pfgSR'><style id='pfgSR'><dir id='pfgSR'><q id='pfgSR'></q></dir></style></legend>

      <small id='pfgSR'></small><noframes id='pfgSR'>

      1. 使用 Android 从 SIM 中获取 MSISDN

        时间:2023-05-19
          <tbody id='ZtbGk'></tbody>

          1. <i id='ZtbGk'><tr id='ZtbGk'><dt id='ZtbGk'><q id='ZtbGk'><span id='ZtbGk'><b id='ZtbGk'><form id='ZtbGk'><ins id='ZtbGk'></ins><ul id='ZtbGk'></ul><sub id='ZtbGk'></sub></form><legend id='ZtbGk'></legend><bdo id='ZtbGk'><pre id='ZtbGk'><center id='ZtbGk'></center></pre></bdo></b><th id='ZtbGk'></th></span></q></dt></tr></i><div id='ZtbGk'><tfoot id='ZtbGk'></tfoot><dl id='ZtbGk'><fieldset id='ZtbGk'></fieldset></dl></div>
              <bdo id='ZtbGk'></bdo><ul id='ZtbGk'></ul>

            • <tfoot id='ZtbGk'></tfoot>

              • <legend id='ZtbGk'><style id='ZtbGk'><dir id='ZtbGk'><q id='ZtbGk'></q></dir></style></legend>

                  <small id='ZtbGk'></small><noframes id='ZtbGk'>

                  本文介绍了使用 Android 从 SIM 中获取 MSISDN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我正在尝试使用 Android 从 SIM 中检索 MSISDN,我已尝试 getLine1Number() 但这只会返回存储在我的电话信息"或所有者信息"部分中的 MSISDN,如果这些信息是未存储,Android 将返回 null 值.

                  I'm trying to retrieve the MSISDN from the SIM using Android, I have tried getLine1Number() but this only returns the MSISDN stored in My Phone Information or Owner Information secction, if these info is not stored, Android will return a null value.

                  您知道解决此问题的任何方法吗?或者有没有办法从 SIM 号码 (getSimSerialNumber()) 中获取 MSISDN?

                  Do you know any work around from this? or is there a way to derive the MSISDN from the SIM number (getSimSerialNumber())?

                  一如既往地等待一个可靠的答案!:)

                  Awaits a solid Answer as always !!! :)

                  推荐答案

                  MSISDN(又名手机号码)不是 SIM 卡数据,因此无法检索.SIM 卡具有一个 IMSI(国际移动用户身份),该 IMSI(国际移动用户身份)被发送到负责映射 MSISDN/IMSI 的 HLR(归属位置寄存器).如果移动电话运营商愿意,他们可以将 MSISDN 存储在 SIM 卡上,但由于 GSM 协议不需要它.

                  The MSISDN (aka the mobile phone number) isn't a SIM data, so you can't retrieve it. The SIM card has an IMSI (International Mobile Subsriber Identity) that is sent to the HLR (Home Location Register) in charge of doing the mapping MSISDN/IMSI. Mobile phone operators could store the MSISDN on the SIM card if they wanted to, but since it is not required in the GSM protocol it isn't.

                  对不起!

                  有关更多信息,请查看此讨论获取电话号码 还有android如何获取MSISDN

                  For more info look at this discussion Getting phone number also How android get MSISDN

                  要获取IMSI号码,

                   TelephonyManager mTelephonyMgr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
                   String imsi = mTelephonyMgr.getSubscriberId();
                  

                  但有些手机只返回 6 位而不是 15 位.所以,您可以使用,

                  but a few handsets only return 6 digits instead of 15. So, you can use,

                  根据这篇文章:http://www.anddev.org/tinytut_-_getting_the_imsi_-_imei_sim-device_unique_ids-t446.html

                  String imei = android.os.SystemProperties.get(android.telephony.TelephonyProperties.PROPERTY_IMSI);
                  

                  有关更多信息,请查看 此问题 和 类 SystemProperties

                  For more info look at This Question and class SystemProperties

                  这篇关于使用 Android 从 SIM 中获取 MSISDN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Eclipse:Android 设备选择器 - 未知的 Android 2.3.4 设备 下一篇:LogCat 中的各种颜色代表什么?

                  相关文章

                  1. <small id='8Fbjy'></small><noframes id='8Fbjy'>

                  2. <legend id='8Fbjy'><style id='8Fbjy'><dir id='8Fbjy'><q id='8Fbjy'></q></dir></style></legend>

                    • <bdo id='8Fbjy'></bdo><ul id='8Fbjy'></ul>
                  3. <i id='8Fbjy'><tr id='8Fbjy'><dt id='8Fbjy'><q id='8Fbjy'><span id='8Fbjy'><b id='8Fbjy'><form id='8Fbjy'><ins id='8Fbjy'></ins><ul id='8Fbjy'></ul><sub id='8Fbjy'></sub></form><legend id='8Fbjy'></legend><bdo id='8Fbjy'><pre id='8Fbjy'><center id='8Fbjy'></center></pre></bdo></b><th id='8Fbjy'></th></span></q></dt></tr></i><div id='8Fbjy'><tfoot id='8Fbjy'></tfoot><dl id='8Fbjy'><fieldset id='8Fbjy'></fieldset></dl></div>

                      <tfoot id='8Fbjy'></tfoot>