显示吐司上的未接来电的Andr​​oid应用程序 [英] Show Toast on Missed Call in android application

查看:152
本文介绍了显示吐司上的未接来电的Andr​​oid应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要显示一个烤面包的活动时,未接电话发生。我怎样才能做到这一点?

i want to show a Toast in an Activity when a missed call happened. How can i do it?

在此先感谢。

推荐答案

我想你有内容提供商访问通话记录。

I suppose you have content providers to access call logs.

http://www.anddev.org/video-tut_-_querying_and_displaying_the_calllog-t169.html

http://www.devx.com/wireless/Article/41133

如果这个code工作,你只需要运行此查询在正确的时间。我的意思是检查一些样品,可以通知您,当您在手机接到一个电话

If this code works you just need to run this query at the right time. I mean check some samples that can notify you when you get a call in your device

http://groups.google.com/group/android-developers/browse_thread/thread/d97a759a3708cbe3

一旦你得到这个通知,把定时器或者使用一些内置的意图却发现该电话是恢复到正常状态,并访问通话记录......

Once you get this notification put a timer or use some built in Intents to find that the phone is back to normal state and access the call logs...

这篇关于显示吐司上的未接来电的Andr​​oid应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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