Parse error: syntax error, unexpected '-', expecting T_STRING or T_VARIABLE or '{' or '$' in /home/youropen/public_html/admin/lib/common.php(254) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_VARIABLE or '$' in /home/youropen/public_html/admin/lib/common.php(256) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_STRING or T_VARIABLE or '{' or '$' in /home/youropen/public_html/admin/lib/common.php(254) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_VARIABLE or '$' in /home/youropen/public_html/admin/lib/common.php(256) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_STRING or T_VARIABLE or '{' or '$' in /home/youropen/public_html/admin/lib/common.php(254) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_VARIABLE or '$' in /home/youropen/public_html/admin/lib/common.php(256) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_STRING or T_VARIABLE or '{' or '$' in /home/youropen/public_html/admin/lib/common.php(254) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_VARIABLE or '$' in /home/youropen/public_html/admin/lib/common.php(256) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_STRING or T_VARIABLE or '{' or '$' in /home/youropen/public_html/admin/lib/common.php(254) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_VARIABLE or '$' in /home/youropen/public_html/admin/lib/common.php(256) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_STRING or T_VARIABLE or '{' or '$' in /home/youropen/public_html/admin/lib/common.php(254) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_VARIABLE or '$' in /home/youropen/public_html/admin/lib/common.php(256) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_STRING or T_VARIABLE or '{' or '$' in /home/youropen/public_html/admin/lib/common.php(254) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_VARIABLE or '$' in /home/youropen/public_html/admin/lib/common.php(256) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_STRING or T_VARIABLE or '{' or '$' in /home/youropen/public_html/admin/lib/common.php(254) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_VARIABLE or '$' in /home/youropen/public_html/admin/lib/common.php(256) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_STRING or T_VARIABLE or '{' or '$' in /home/youropen/public_html/admin/lib/common.php(254) : eval()'d code on line 1

Parse error: syntax error, unexpected '-', expecting T_VARIABLE or '$' in /home/youropen/public_html/admin/lib/common.php(256) : eval()'d code on line 1
Android - How can I know the calling time of an active call

Your Open Source

 
Related Posts
QA  >>  Mobile Development  >>  Android

How can I know the calling time of an active call?

 I need know the calling time of an active call?

  I am trying to develop an automated test application which can
initiate a voice call and terminate the same on a user-defined time. I
would need to know the current call's time details so that I can end
the call after the time mentioned by the user.
It would have been quite simple for me had android provided a separate
telephony state indicating an active call state.
Android currently provides the CALL_STATE_OFFHOOK for active, dialling
and hold states of the call. So it is difficult to use the above
approach.
Can anyone suggest a solution to my requirement?

  • hits 320
  • datetime Aug 27 09 05:33:36
  • author Tech
  • rating

Rating : 12345
Tags :- Android

Answers

sekar
Aug 27 09 05:54:15
well.. The following way to you can resolve it,
  • First create thread or timer on your application, and the thread need to check the incoming calls frequently
  • If getting incoming calls, you just calculate it and stored in static variables, so now you can get the current call time before ending the calls
For your reference about how to get in/out calls,
http://youropensource.com/projects/532-access-the-incoming-outgoing-calls-using-TelephonyManager

I hope its will helpful for you!!

Your Name:
Your Answers :
<> is a code tag
Preview
Enter the verification code: