Show Toast on Missed Call in android application

前端 未结 2 933
心在旅途
心在旅途 2021-01-25 00:04

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

Thanks in advance.

相关标签:
2条回答
  • 2021-01-25 00:34

    There was a similar question recently, the answer should work for you as well:

    broadcast receiver for missed call in android

    showing the toast afterwards should be the easy part :)

    0 讨论(0)
  • 2021-01-25 00:48

    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

    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...

    0 讨论(0)
提交回复
热议问题