wood burning stoves 2.0*
The moose likes Android and the fly likes How to get outgoing call duration in real time? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to get outgoing call duration in real time?" Watch "How to get outgoing call duration in real time?" New topic
Author

How to get outgoing call duration in real time?

Vladimir Svydenko
Greenhorn

Joined: Jul 03, 2010
Posts: 4

Hi, guys!

Now I write one app and have some problem -
I need to show real-time outgoing call duration. But I do not know when I should start timer.
I must start when get answer from other side.
I tried TelephonyManager.EXTRA_STATE_OFFHOOK -- but it's state is when I press call-button..

OFFHOOK is the state when call is placed.

So we should be notified when the call is received.
How can we get that?

Can You help me? When I should start count outgoing time?

Thanks
 
Consider Paul's rocket mass heater.
 
subject: How to get outgoing call duration in real time?