getLine1Number返回null,但并不总是 [英] getLine1Number return null but not always

查看:208
本文介绍了getLine1Number返回null,但并不总是的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用的是电话经理拿到的电话号码,在SDK的所有作品完美,在一些设备就像我的英雄1.5返回null,对文身有1.6它的工作原理,但它返回null其他一些纹身.. 。照片 我开始变得疯狂......为什么会这样?是否有另一种方式获得的电话号码?

I use the telephony manager to get the phone number, in the sdk all works perfectly, on some devices like my hero with 1.5 it returns null, on the tattoo with 1.6 it works but on some other tattoos it returns null...
I start to get crazy... why is this happening? Is there is another way for get the phone number?

推荐答案

据我所知,返回的电话号码是无论是存储在SIM卡的 MSISDN ,这是不填充一些运营商。 (更糟糕的是,根据一些报道,这个数字实际上可能是不正确的!)

As far as I know, the phone number returned is whatever is stored on the SIM card's MSISDN, which isn't filled by some operators. (Worse still, according to some reports, the number might actually be incorrect!)

不幸的是,我不知道任何其他方法,无论是。

Unfortunately, I don't know of any other method, either.

这篇关于getLine1Number返回null,但并不总是的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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