创建自定义呼叫处理应用程序

发布于 2024-10-03 19:32:55 字数 166 浏览 7 评论 0原文

您好,我正在寻找创建一个自定义呼叫应用程序。

即我想替换默认的应用程序处理调用:S。

我确信我想重新发明轮子有时当前的轮子对我来说并不好。

你能把我放在启动线上吗?我曾经是一位已婚的 M$“.net 开发人员”,我爱上了 Google。

Hi There I'm looking to create a custom call application.

i.e I want to replace the default application handling call :S.

I'M SURE THAT I WANT TO REINVENT THE WHEEL Sometimes current wheels are ain't good for me.

Can you put me on a start up line. I used to be a married to M$ ".net developer", and I'm in love with gOOgle.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

岁月静好 2024-10-10 19:32:55

正如 Emmanuel 已经说过的,如果不重新编译操作系统,就不可能真正替换手机应用程序。即使在获得 root 权限的设备上,您仍然被锁定在供应商固件中,并且尝试从那里向后工作充其量只是一个脆弱的建议。现在,可以接收某些事件类型的通知并在那里执行操作,但我怀疑这就是您想要做的。

但是,对于那些必须了解幕后情况的人,请查看 看这里

对于公开的电话接口(包括 SMS API),请参阅 android.电话

As Emmanuel has already stated, it is not possible to truly replace the phone app without recompiling the operating system. Even on a rooted device, you are still locked into the vendor firmware and trying to work backwards from there would be a tenuous proposition at best. Now, it is possible to receive notifications in certain event types and preform actions there, but I doubt this is what you want to do.

However, for those who must know what goes on under the hood, take a look here

For exposed telephony interface (including SMS API), see android.telephony

隔岸观火 2024-10-10 19:32:55

现在这是可能的。从文档页面构建呼叫应用

构建通话应用

呼叫应用程序允许用户在其设备上接听或拨打音频或视频呼叫。呼叫应用程序使用自己的用户界面进行呼叫,而不是使用默认的电话应用程序界面...

Android 框架包含 android.telecom 包,它包含可帮助您根据电信框架构建呼叫应用程序的类。 ...

您的应用清单必须声明它使用所有适当的权限(当前 <代码>MANAGE_OWN_CALLSREAD_CALL_LOGREAD_PHONE_STATEREAD_PHONE_NUMBERS)并实施ConnectionServiceConnection 类。

上述文档页面提供了更多详细信息和示例。

Now it is possible. From the documentation page Build a calling app:

Build a calling app

A calling app allows users to receive or place audio or video calls on their device. Calling apps use their own user interface for the calls instead of using the default Phone app interface...

The Android framework includes the android.telecom package, which contains classes that help you build a calling app according to the telecom framework. ...

Your app manifest must declare that it uses all the appropriate permissions (currently MANAGE_OWN_CALLS, READ_CALL_LOG, READ_PHONE_STATE, and READ_PHONE_NUMBERS) and implement the ConnectionService and Connection classes.

The aforementioned doc page provide further details and examples.

鸵鸟症 2024-10-10 19:32:55

除了制作自定义操作系统并将其安装在已 root 的手机上之外,无法替换手机应用程序。但这样很麻烦。

但是您可以开发一个单独的应用程序并让它拨打电话或拦截来电。但是,当用户打电话时,他仍然会看到旧的电话应用程序。

It's not possible to replace the phone application besides making a custom operating system and install it on rooted phones. But that's a lot of trouble.

But you can develop a separate application and have it make phone calls or intercept incoming calls. But while the user is talking on phone he'll still see the old phone application.

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