Hi there,

My app needs to catch missed calls. Currently the TelephonyManager API 
doesn't report missed calls(*), so I resorted to listen to call log changes.

Problem is that even though my app was running and registered a content 
observer, what guarantees do I have that if my app gets killed that observer 
will be called (say Android decides to free up some memory by killing it)?

I also tried to listen to TelephonyManager's phone-state-changed intent, but 
from my experiments when a call ends and my phone state receiver is called 
with "call idle" state, the call log still doesn't hold the new call so I 
can't query it just then.

Any ideas?

Thanks in advance,
Tal

(*) For those of you who will rightfully say that the way to detect a missed 
call is if there's a "call ringing" event and then a "call idle" event but 
no "call off-hook" event in the middle, I'll have to point out that if you 
are already _in_ a call and there's a call waiting, you don't get another 
"call off-hook" event if the user answered the call waiting. So basically on 
call waiting or conference calls scenarios you can't tell which calls were 
answered and which were missed...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to