I want to know how I can get the call duration in Android, I want to start the timer when user starts a call and then after some specific time say after 5 minutes I want to end the call, so I want to know that how can I get the call duration?
I know I can get this by using the call logs but I have a question, can I get the data in real time according to me when my call will be ended then only the call log will be updated and then only I will be able to get the time, but at time the data is useless for me.