如何检测和管理来电(安卓)? [英] How to detect and manage incoming call (Android)?

查看:156
本文介绍了如何检测和管理来电(安卓)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个能检测来电和一定数量的哔哔声后,开始了我的自定义活动(环)的应用程序,我经过2或3或5声(圈)的意思是我的活动被触发。我该怎么办呢?

感谢

解决方案

我的有关检测接听和拨打电话,用一步一步的指导文章: 检测在Android <传入和传出的电话/ P>

当你发现来电时,你可以启动一个定时器,区间等于beepInterval * beepCount。在此计时器和发射活动。

I want to create an application that can detect incoming calls and start my custom activity after a certain number of beeps (rings), I mean after 2 or 3 or 5 beeps (rings) my activity is triggered. How can I do it?

Thanks

解决方案

My article about detecting incoming and outgoing calls, with the step-by-step instructions: Detecting incoming and outgoing phone calls on Android

When you detect incoming call, you can start a timer, with interval equal to beepInterval * beepCount. And launch activity on this timer.

这篇关于如何检测和管理来电(安卓)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆