创建自定义呼叫处理应用程序
您好,我正在寻找创建一个自定义呼叫应用程序。
即我想替换默认的应用程序处理调用: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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
正如 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
现在这是可能的。从文档页面构建呼叫应用:
您的应用清单必须声明它使用所有适当的权限(当前 <代码>MANAGE_OWN_CALLS,
READ_CALL_LOG
,
READ_PHONE_STATE
和READ_PHONE_NUMBERS
)并实施ConnectionService
和Connection
类。上述文档页面提供了更多详细信息和示例。
Now it is possible. From the documentation page Build a calling app:
Your app manifest must declare that it uses all the appropriate permissions (currently
MANAGE_OWN_CALLS
,READ_CALL_LOG
,READ_PHONE_STATE
, andREAD_PHONE_NUMBERS
) and implement theConnectionService
andConnection
classes.The aforementioned doc page provide further details and examples.
除了制作自定义操作系统并将其安装在已 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.