Languages

Menu
Sites
Language
How do I know that the user is in a phone call?

Hi, my app need to do something specific when the user is in a phone call. How do I know if there's an active phone call?

I searched in the help and in the forum but didn't find anything about it. Thank you.

Responses

4 Replies
AVSukhov

Hello,

You cannot do it using Web API.

You can try to use native api (Telephony API):

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.native.appprogramming/html/guide/telephony/telephony.htm

daniel kim

Hi,

There is no exposed api to figure out the call state. but I found that native api which return the call state of device.

 

Call Information

The Call API provides the following functions:
         •   telephony_call_get_voice_call_state()
        Determines whether the voice call is connecting, connected, or idle. It returns one of the telephony_call_state_e values.

 

I wish this will help you.

Stefano Accorsi

Thank you both! I don't know anything about native development, consider that I developed a web app that in its .js has about 4000 lines of code so I wouldn't have to rewrite it in native code. Is it possible to mix native and web development? If so I will search for how to do it. Thank you.

AVSukhov

Hello,

Yes, you can use Hybrid app:  web UI part + native service

About Hybrid app:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.web.appprogramming/html/app_dev_process/multiple_project_dev_package.htm

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.web.appprogramming/html/app_dev_process/multiple_project_dev_package.htm

For communication you can use Message Port:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.web.appprogramming/html/app_dev_process/multiple_project_dev_package.htm