gpt4 book ai didi

android - 获取 Android MSISDN 值

转载 作者:行者123 更新时间:2023-11-30 04:19:24 24 4
gpt4 key购买 nike

我有一个问题。有人可以指导我如何获得我的移动 MSISDN 号码。是否有任何用于获取/显示 MSISDN 号码的示例应用程序。我需要获得 MSISDN 号码。任何示例项目都会有很大帮助。

提前致谢。

最佳答案

它已在一些主题中涵盖,即:Programmatically obtain the phone number of the Android phone .

但是,请记住,这并不总是有效。至少有几张葡萄牙 SIM 卡,我无法使用这些方法检索电话号码。

引用@Johan 在该主题中的回答:

There is no guaranteed solution to this problem because the phone number is not physically stored on all SIM-cards, or broadcasted from the network to the phone. This is especially true in some countries which requires physical address verification, with number assignment only happening afterwards. Phone number assignment happens on the network - and can be changed without changing the SIM card or device (e.g. this is how porting is supported).

I know it is pain, but most likely the best solution is just to ask the user to enter his/her phone number once and store it.

关于android - 获取 Android MSISDN 值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9498192/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com