• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get outgoing call duration in real time?

 
Vladimir Svydenko
Greenhorn
Posts: 4
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic