全屏来电图片和全屏来电显示

发布于 2024-10-01 19:24:57 字数 191 浏览 0 评论 0原文

所以我一直在寻找如何替换 in 调用屏幕或在其上放置一些东西......我唯一的解决方案 到目前为止发现是制作我自己的ROM,这对于 操作系统的一小部分。但是我发现这两个应用程序(完整 屏幕来电显示图片和全屏来电显示) 呼叫屏幕标准顶部的联系人图像和按钮。

我不知道这些开发人员到底做了什么,但是 希望论坛里有人这么做。

有什么想法吗?

So I've been searching for some time on how to either replace the in
call screen or put something on top of it....the only solution I have
found thus far is to make my own ROM, which doesn't make sense for
such a small portion of an OS. however I found these two apps (Full
Screen Caller Pictures and Full Screen Caller ID) that are able to put
a contact image and button on top of the standard in call screen.

I don't know exactly what either of these developers have done, but
hope someone on the forums does.

Any ideas?

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

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

发布评论

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

评论(1

说好的呢 2024-10-08 19:24:57

扩展BroadcastReceiver类,设置为开机启动,然后添加

TelephonyManager telephonymanager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
        PhoneStateListener listener = new Listener();
        telephonymanager.listen(listener, PhoneStateListener.LISTEN_CALL_STATE);

Listener的监听器onReceive代码:

class Listener extends PhoneStateListener {

        @Override
        public void onCallStateChanged(int state, String incomingNumber) {
            // TODO Auto-generated method stub
            switch (state) {

                case TelephonyManager.CALL_STATE_IDLE:
                    break;

                case TelephonyManager.CALL_STATE_OFFHOOK:
                    break;


                case TelephonyManager.CALL_STATE_RINGING:
                    // do sth 
                    break;
            }
            super.onCallStateChanged(state, incomingNumber);
        }
    }

extend BroadcastReceiver class, set to boot, and then add the listener onReceive

TelephonyManager telephonymanager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
        PhoneStateListener listener = new Listener();
        telephonymanager.listen(listener, PhoneStateListener.LISTEN_CALL_STATE);

code of Listener:

class Listener extends PhoneStateListener {

        @Override
        public void onCallStateChanged(int state, String incomingNumber) {
            // TODO Auto-generated method stub
            switch (state) {

                case TelephonyManager.CALL_STATE_IDLE:
                    break;

                case TelephonyManager.CALL_STATE_OFFHOOK:
                    break;


                case TelephonyManager.CALL_STATE_RINGING:
                    // do sth 
                    break;
            }
            super.onCallStateChanged(state, incomingNumber);
        }
    }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文