Languages

Menu
Sites
Language
sound_manager_acquire_focus crashes the watch app

Hi!

A call to the native API function sound_manager_acquire_focus crashes my watch app if the phone connected to the watch is in a call (regular voice call). I have tested the media player on the watch and it detects that the connected phone is in a call and displays a message saying that it is not possible to play while in a call. That message is nice but the main thing for me is to prevent my app from crashing. I think it must be something wrong in Tizen. The logical thing to do would be to just reject the attempt to acquire sound stream focus. However, since the sound_manager_acquire_focus functions always makes my app crash, I need to detect if it is safe to call it before doing so. How can I detect an ongoing voice call?

Best regards, Stian