语言

Menu
Sites
Language
SAP: Autolaunch on gear s2 side

Hello,

I'm using Samsung Accessory Protocol to communicate Android application and Samsung Gear S2.

I have read on some forums that it is not possible wake up a host gear application from Android, but you can wake up a Android applicattion from Tizen.

My architecture is Android Consumer -> Tizen Provider. I want wake up the application on Gear S2 after Android Consumer has established connection with Samsung Gear S2 Tizen Provider (host). ¿It is possible?

I have added attribute autoLaunchAppId="zFf5d2xo26.MyProject" to accessoryservices.xml from Tizen Provider, but it doesn't work.

Any suggestions? Am I doing an impossible thing? :)

Thank you,

Joaquim Puyo

响应

3 回复
daniel kim

Hi,

I think that you've added an application id for autolaunch corretly.

And  I would suggest you to check a sample code of accessory sdk as I could observe that Tizen provider was launched automatically from android consumer side.

    http://developer.samsung.com/galaxy#accessory

-accessoryservices.xml in Tizen provider -

<resources>
    <application name="HelloAccessoryProvider" >
        <serviceProfile
            id="/sample/hello"
            name="helloaccessory"
            autoLaunchAppId="UM2FcDkLYZ.HelloAccessoryProvider"
            role="provider"
            version="1.0"
            serviceLimit="ANY"
                serviceTimeout="10">
            <supportedTransports>
                <transport type="TRANSPORT_BT" />
                <transport type="TRANSPORT_WIFI"/>

Regards

Joaquim Puyo Garrido

Hello Daniel,

I think that my problem is that Tizen app is launched in background, but I have solved this problem reading this post:

http://denvycom.com/blog/gear-2-bring-app-from-background-to-foreground/

The trick is execute tizen.application.launch("zFf5d2xo26.MyProject", onsuccess)

 after connection has been established.

This solution only works when screen is on. For the moment, my workaround to solve this is configure screen timeout to 5 minutes.

Thank you,

Best regards

AVSukhov

hello,

try to add baground-support="true" settings to your config.xml