Android 上的来电显示 - 如何抑制/延迟默认来电屏幕?
我们正在开发来电显示应用程序,到目前为止,我们可以按照http://developer.android.com/reference/android/telephony/TelephonyManager.html 和 CALL_STATE_RINGING
但是,我们面临的问题如下:
a) 当手机有来电时,默认来电屏幕优先并立即显示
b) 1-2 秒后,我们的来电显示屏幕出现。 我们希望完全避免/抑制/延迟默认来电屏幕,以便用户体验更好。
We are developing Caller ID application and till now we are able to replace default incoming call screen with our own layout/caller ID screen following http://developer.android.com/reference/android/telephony/TelephonyManager.html with CALL_STATE_RINGING
However, the issue we are facing is as follows:
a) When phone gets incoming call, the default incoming call screen gets priority and gets displayed immediately
b) after 1-2 seconds, our caller ID screen come up.
we want to avoid/suppress/delay default incoming call screen completely so that user experience will be better.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我还没有找到完全抑制默认屏幕的方法。然而,在 startActivity 之前较小的延迟(500 毫秒)对我来说效果很好。
另外,我的意图中包含以下标志来启动自定义活动。我的代码看起来像:
I haven't found out a way to totally suppress the default screen. However a smaller delay (500 ms) before the startActivity works good for me.
Also, I have the following flags into my Intent to start my custom activity. My code looks something like :
如果我们使用广播接收器,则可以使用我们自己的对话框和屏幕。
If we use the Broadcast Recieiver then it is possible to use our own dialogbox and the screen.