简体   繁体   English

传入视频群聊拨号器号码的意图为空

[英]intent on incoming hangouts dialer number is null

Incoming number on moto G 4G kitkat from outgoing hangouts dialer call on another device... 来自另一台设备上的外向视频群聊拨号程序呼叫的moto G 4G kitkat上的传入号码...

Stock phone app and/or 备用电话应用和/或

public void onReceive(final Context context, Intent intent) {

    Bundle extras = intent.getExtras();

    number = extras.getString(TelephonyManager.EXTRA_INCOMING_NUMBER);

Both produce: NULL 两者都产生:NULL

Incoming number from other outgoing source is not null and is shown. 来自其他传出来源的传入号码不为null,并显示。

However 然而

Log.d(TAG, "isEmpty? " +extras.isEmpty());

Produces: InPhoneStateMonitor(4661): isEmpty? 产生:InPhoneStateMonitor(4661):isEmpty? false

Though perhaps its the state information or other: 尽管可能是其状态信息或其他:

String state = extras.getString(TelephonyManager.EXTRA_STATE);

There is also nothing I can see in hangouts to make a difference. 在环聊中我看不到有什么改变。 Haven't checked google voice account settings from the website or tried from my old Google voice number through hangouts either. 既没有从网站上检查过Google语音帐户设置,也没有通过环聊从我的旧Google语音号码中尝试过。

In the end my question is : Why is there no phone number being received or at least appears to be null from that source? 最后,我的问题是 :为什么没有收到电话号码,或者至少从该来源收到电话号码为空?

Well, it appears I just figured out how to get a non-null number as my old Google voice number is not null from hangout dialer outgoing call... 好吧,看来我只是想出了如何获取非空号码,因为我的旧Google语音号码在环聊拨号程序拨出电话中不为空...

The account I use on my devices never had a Google voice number registered and at the Google voice website settings -> phones tab shows: Your Google voicemail access number (xxx)xxx-xxxx Get a Google Voice number 我在设备上使用的帐户从未注册过Google语音号码,并且在Google语音网站设置->手机标签中显示:您的Google语音信箱访问号码(xxx)xxx-xxxx获取Google语音号码

So guessing it is that, or in other words, a provider configuration issue as the number should not be null regardless. 因此猜测是,或者换句话说,提供商配置问题,因为无论如何该数字都不应为空。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM