尝试将传入电话重定向到自定义 UI 在安卓中。

huangapple go评论72阅读模式
英文:

Trying to redirect incoming call to custom made UI in android

问题

我正在尝试将呼入电话重定向到自定义 UI,而不是默认的 Android 屏幕。
我尝试过使用许多方法,比如使用 CallScreeningServiceInCallService,但仍然无法找到解决方案。
有人可以提供一个小的可工作示例解决方案吗?

英文:

I'm trying to redirect incoming calls on a custom made UI instead of default Android screen.
I have tried doing it using many ways like using CallScreeningService or InCallService but still not able to figure out the solution.
Can anyone provide a small sample working solution?

答案1

得分: 0

用户arekolek在最后提供了他自己的源示例,以回答我的问题。

我在他发布时验证过它可以工作,并且应该仍然适用于当前的Android版本。希望这有所帮助,如果有效的话,我建议在那里提供反馈。

英文:

User arekolek provided an answer to my question with his own source sample at the end.

I verified it working back when he posted it, and should still work on current Android versions. Hope that helps, I would suggest providing feedback to there if it does.

huangapple
  • 本文由 发表于 2020年7月29日 00:43:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/63138935.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定