aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get outgoing call duration in real time?