如何启动来电界面?
我正在开发一个 SIP 应用程序,并且希望在有来自 SIP 客户端的来电时启动正常的来电界面。这可能吗? 非常感谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
抱歉,Android 中似乎没有标准的来电接口(至少在 API 级别 10 之前)。
您在来电时看到的屏幕是本机 PhoneApp 的一部分。更具体地说,它由拨号器源代码中的类 InCallScreen.java 处理。该 Activity 没有定义 Intent 过滤器,因此它绝对不适合外部使用。
但是,某些应用程序可能会模仿本机屏幕(或复制完整布局,不确定许可证是否允许),因此看起来像是来自本机,但实际上并非如此。
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.
我检查了默认电话应用程序的来源,我认为完成此操作的唯一方法是绘制一个与默认来电界面完全相同的布局 -_-||
如果您有解决办法请告诉我,非常感谢!
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 !