如何得到电话号码的Andr​​oid手机? [英] How to get phone number android phone?

查看:151
本文介绍了如何得到电话号码的Andr​​oid手机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用 getLine1Number()来得到android手机号码,但它返回null。也有时我需要使用另一个SIM卡,并得到其编号。

I try to get phone number using getLine1Number() in android,but it returns null . Also sometimes I need to use another sim and get its number.

如何始终获得电话号码吗?

How to always get phone number ?

推荐答案

在GSM网络,基本上你不能!的电话号码仅由网络而不是由电话或SIM知道

On GSM network, basically you can't! The phone number is only know by the Network and not by the phone or the SIM.

这是运营商网络中谁是IMEI SIM卡号码与有效的手机关联起来。这就是为什么可以实现携号转网的理由:你可以有不同的IMEI用同一个电话号码,或者你可以有改变后的电话号码,IMEI一个

It's the operators network who associate the IMEI SIM number with a valid cell phone. And that's the reason why number portability can be achieved: you can have a different IMEI with the same phone number, or you can have an IMEI with a phone number that changes later on.

您可以发送短信到特定的服务,如果你真的想知道的话,或者直接问到最终用户。

You can send an SMS to a specific service if you really want to know it, or ask directly to the end user.

这篇关于如何得到电话号码的Andr​​oid手机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆