[android-developers] Re: Listening to call log changes when app is not running
Hi Rishi,
Thanks for your suggestion. Unfortunately I can't do that because when the ACTION_PHONE_STATE_CHANGED is fired the call log still doesn't hold the most recent call(s).
I resorted to register to ACTION_PHONE_STATE_CHANGED and when the state becomes CALL_STATE_IDLE I set up an alarm for now + 100ms and then when the alarm goes off I check the call log for changes... A bit crude, but that's the only way I could come up with that works regardless of the app running or not...
If there's a better or a more Android-like method to do this I'd be happy to hear what you or the community thinks, but if not I hope this hack helps someone :)
Thanks again!
Tal
-- You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home