如何检测和管理来电(安卓)? [英] How to detect and manage incoming call (Android)?
问题描述
我想创建一个能检测来电和一定数量的哔哔声后,开始了我的自定义活动(环)的应用程序,我经过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屋!