Languages

Menu
Sites
Language
Launch native app from phone

I have a native wearable Tizen app, and a companion Android phone app.  They communicate using the Samsung Accessory Protocol SDK.  Right now, users have to start the phone app, then explicitly start the wearable app to connect them.  Is there any way the phone app can cause the wearable app to launch?

One way I thought of is to create a service on the watch which listens for connections from the phone, then uses app_manager_resume_app() to launch the wearable app.  Will this work?  Is there an easier way?

 

thanks!

Responses

2 Replies
Mango Bar

You can open another gear app from the same gear using app_manager_resume_app method. But afaik you can't open gear app from Android phone app. 
So you need to connect from the both side to communicate using SAP.

Steven Merel

For the record, here's how to do it:

In the gear app's accessoryservices.xml file, set the autoLaunchAppId.  For example:

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.3px Times; -webkit-text-stroke: #000000} span.s1 {font-kerning: none} span.s2 {font-kerning: none; color: #ff0000; -webkit-text-stroke: 0px #ff0000}

<resources>
    <application name="Weather">
     <serviceProfile
         id="/system/weather"
         name="Weather"
         role="Consumer"
         autoLaunchAppId="org.tizen.weather"