How to launch the incoming call interface?

时光毁灭记忆、已成空白 提交于 2019-12-24 08:47:36

问题


I'm devlopping a SIP application and whant to launch the normal incoming call interface when having an incoming call from a SIP client. Is that possible ? Thank you very much.


回答1:


I am sorry, but it looks like there is nothing as standard incoming call interface in Android (at least not until API level 10).

The screen that you see on incoming call is part of the native PhoneApp. More specifically, it is handled by the class InCallScreen.java from the dialer source code. That Activity has no Intent filters defined, so definitely it is not intended for external usage.

However, some applications may mimic native screens (or copy complete layout, not sure if license allows that), so it looks like it is from native, although in fact it is not.




回答2:


I checked the source of default phone app, and I figured the only way to get this done is draw a layout exactly like the default incoming call interface -_-||
If you have the solution , please tell me , thank you so much !



来源:https://stackoverflow.com/questions/5918710/how-to-launch-the-incoming-call-interface

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!