On Wed, Sep 8, 2010 at 8:18 AM, KrcK --- <krc...@gmail.com> wrote: > Ok but how could I identify that I answered a call or is lost, and the > duration of the call? Because I can know the current state and at what time > it is produced but I do not have information about previous states.
The answered/lost data is not part of a public API, AFAIK. Duration of the call is something you can track yourself. > For example, I answer a call so I will receive OFFHOOK state, but when the > call finished I will receive the IDLE state, but I could not know if the > previous state was RINGING or OFFHOOK to identify wich kind of call was > realized (answer or lost), and in the case of answered call I could not know > when started. Sure you can. You have indicated that you are replicating the CallLog. I would imagine this involves persisting the data. Hence, you already have some file or database or something where you are storing data. Store the in-progress call information using the same techniques. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en