Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get outgoing call duration in real time?  RSS feed

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?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!