SmartWatch Call Handling (start an extension from another extension)
-
03-07-2021 - |
Question
Is there a way that I start Sony's "Call handling" extension, from my own extension which triggers the call?
To make myself clear, I just want to:
1) Programatically close (shut down) my extension and 2) Programatically open the "Call handling" extension
That's exactly what the Phonebook extension does - when it initiates a call, the "Call handling" extension is started. My extension also initiates a call, I just don't know how to transfer the control to the "Call handling".
So, it's possible, but how?
Solution 2
Ok, that's possible, despite the answer of Jerker (=Sony's support). Maybe I didn't know how to properly ask. Nevermind, here's the solution:
1) to close my extension:
sendToHostApp(new Intent(Control.Intents.CONTROL_STOP_REQUEST_INTENT));
2) to launch a different extension - follow the instructions given here: How should I do to start SmartWatch Extension from the program code?
OTHER TIPS
There is no public API for the "Call handling" extension, sorry.