Android自定义拨号器-未接来电的实现缺少吗?

问题描述

根据以下示例,我创建了一个自定义拨号器: https://github.com/Abror96/CustomPhoneDialer。 它工作完美,我可以将其作为认拨号器。一切正常,来电/去电。直到我在电话关闭时未接听电话。开机时,它会发出通知,并在第一个未接来电时停顿并过一会儿重新启动。看来我缺少什么。仅将旧的拨号程序恢复为认设置有助于解决问题 我通过logcat进行了一些调查,然后我发现了一些东西:

notificationmanager: com.android.server.telecom: notify(1,Notification(channel=TelecomMissedCalls pri=0 contentView=null vibrate=null sound=null defaults=0x4 flags=0x11 color=0xff2a56c6 vis=PRIVATE publicVersion=Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x10 color=0xff2a56c6 vis=PRIVATE)))
NotificationService: enqueueNotificationInternal: pkg=com.android.server.telecom id=1 notification=Notification(channel=TelecomMissedCalls pri=0 contentView=null vibrate=null sound=null defaults=0x4 flags=0x11 color=0xff2a56c6 vis=PRIVATE publicVersion=Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x10 color=0xff2a56c6 vis=PRIVATE))
Watchdog:     at com.android.server.telecom.TelecomServiceImpl$1.getCallState(TelecomServiceImpl.java:811)
TelecomManager: remoteexception attempting to get the default dialer package name.

在此之后还有一个巨大的堆栈跟踪:

TelecomManager: Error calling ITelecomService#getCallCapablePhoneAccounts(false)
TelecomManager: android.os.DeadobjectException
TelecomManager:     at android.os.BinderProxy.transactNative(Native Method)
TelecomManager:     at android.os.BinderProxy.transact(Binder.java:766)
TelecomManager:     at com.android.internal.telecom.ITelecomService$Stub$Proxy.getCallCapablePhoneAccounts(ITelecomService.java:796)
再次

之后是stacktrace。 所以我想我可能缺少一些实现。但是,我没有任何线索可以实施。如果我看一下api文档代码示例,那么没有地方提到需要为未接来电做一些事情。有一个动作“ ACTION_SHOW_MISSED_CALLS_NOTIFICATION”会通知一包未接来电,但这只是本地广播。因此没有必要。 有人可以阐明正在发生的事情吗?

谢谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...