添加“视图”到 Android 上的接听/拨打电话窗口

发布于 2024-11-30 07:30:54 字数 371 浏览 7 评论 0原文

我正在寻找一些帮助,而不是勺子饲料源代码(从我在这个论坛上读到的一些线程中无论如何都不会发生)。我真的只是想知道我脑子里想象的事情是否可能,如果可能的话,我是否能找到正确的方向。因此,我希望添加一个“视图”,无论什么类型的概念对于所有这些都相同,在接听或拨打电话时出现,并不重要。你知道那个有一个小机器人在向你挥手或者一张照片等等。唯一的事情是我只想像顶部 30px 一样成为这个“视图”。

例如,您接到一个电话,在屏幕顶部的接听电话窗口顶部有一个 TextView,其中包含有关此人的注释(即 - 他很臭)。

到目前为止,我唯一能想到的是,我必须提出一个不可见或消失的布局,但到目前为止还没有弄清楚。

我是在吠叫正确的树还是我需要找到另一棵树来嗅闻。任何和所有的帮助将不胜感激。

I am looking for some help, not being spoon feed source code (which from some of the threads I have read on this forum wouldn't happen anyway). I am really just wanting to know if what I have conjured up in my head is even possible or not, and if it is if I could get pointed in the right direction. So, I am looking to add a "view", doesn't really matter what type the concept would be the same for all of them, to appear when receiving or placing a phone call. You know the one that has the little droid waving at you or a photo, etc. The only thing is that I would only want like the top 30px to be this "view".

For instance, you receive a phone call and at the top of your screen on top of the receiving call window is a TextView with a note about this person (i.e. - he stinks).

The only thing I have been able to come up with so far is that I would have to bring up a layout that was either invisible or gone, but have yet to figure it out as of yet.

Am I barking up the right tree or do I need to find a different tree to sniff. Any and all help would be appreciated.

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

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

发布评论

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

评论(1

如梦初醒的夏天 2024-12-07 07:30:54

老实说,我不知道这个问题的答案,但如果可能的话,那么您可能必须启动自己的自定义活动来响应来电事件。您自己的此活动将取代标准系统电话应用程序。因此,我在这里进行了搜索,我在短时间内可以找到的最模糊相关的先前问题是:

是否可以编写一个新的“电话”活动,如果是,那么如何编写?

在 Android 上通话结束时启动活动< /a>

这些问题的答案似乎表明,您需要先对手机进行root,然后才能替换标准手机应用程序来接听电话。

I honestly don't know the answer to this, but if it were possible then presumably you would have to have your own custom Activity launch in response to an incoming phone call event. This Activity of your own would replace the standard system phone application. So I did a search on here and the most vaguely related previous questions I could find within a short time are these:

Is it possible to write a new "phone" activity, and if yes then how?

Launch an activity at end of a phone call on Android

Answers on those seem to suggest the phone would need to be rooted before you could replace the standard phone app for receiving calls.

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