Android的来电事件 [英] Android Incoming Call event

查看:115
本文介绍了Android的来电事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想打一个OnCall中的事件,我已历经知道,世界上没有这样的方法,但basicly什么我想要做的:

I want to make an onCall event, I allready know that theres no such method but basicly what i want to do:

当有来电时recived,弹出式烤面包(或其他)

when an incoming call is recived, Popup Toast (or anything else)

任何教程或例子code的会有所帮助。

any kind of tutorials or example code would help.

非常感谢。

推荐答案

使用 PhoneStateListener 已overrided方法 onCallStateChanged 您可以使用3种状态那边

Use PhoneStateListener which has overrided method onCallStateChanged You can use 3 states over there

<一个href=\"http://mfarhan133.word$p$pss.com/2010/10/15/manipulating-incoming-ougoing-calls-tutorial-for-android/\">Example链接

这篇关于Android的来电事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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