如何启动来电界面?

发布于 2024-11-05 07:19:50 字数 65 浏览 5 评论 0原文

我正在开发一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

若相惜即相离 2024-11-12 07:19:50

抱歉,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.

音栖息无 2024-11-12 07:19:50

我检查了默认电话应用程序的来源,我认为完成此操作的唯一方法是绘制一个与默认来电界面完全相同的布局 -_-||
如果您有解决办法请告诉我,非常感谢!

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 !

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文