[英]Why an incoming call number is null in intent extra TelephonyManager.EXTRA_INCOMING_NUMBER?
I have a broadcast receiver defined with intent filter "android.intent.action.PHONE_STATE". 我有一个使用意图过滤器“ android.intent.action.PHONE_STATE”定义的广播接收器。 It mainly works just fine getting phone number from the intent, but sometimes, rather randomly, it fails on some phones.
从意图中获取电话号码通常可以很好地工作,但有时(相当随机地)在某些电话上失败。 It looks like a some firmware bug.
看起来像是一些固件错误。 Does anybody experiences the same issue and know what the reason is actually, how to cope with it?
是否有人遇到过相同的问题,并且知道真正的原因是什么,如何应对?
I have used something like... And I had no problems with using of it... 我曾经使用过类似的东西...而且我使用它没有问题...
IntentService = new Intent(context, PlayService.class).setAction("outgoing_call");
IntentService.putExtra("phone_number",intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER));
context.startService(IntentService);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.