언어 설정

Menu
Sites
Language
[Wearable][Gear]How to launch Samsung Gear Apps from my application?

I create a Tizen application for Gear S2 and I want to add feature to install another application (I know app id, name and other information).

Also I know how to launch Galaxy Apps or Samsung Apps from my Gear S2 application to install something but I can't find any information how to launch Samsung Gear Apps from my code.

The question is how to launch Samsung Gear (Samsung Gear Apps) application installed on my phone from my code (from application on Gear S2). I just need to know correct url.

 

Note:

To call Samsung Apps I use the tizen.application.launchAppControl() function and pass data like this:

 var appid = "com.samsung.w-manager-service"
         ,   type = "phone"
         ,   url = "samsungapps://MainPage/"
         ,    extra_data = [
                 new tizen.ApplicationControlData("type", [type]),
               new tizen.ApplicationControlData("deeplink", [url])
             ]
         ,    appControl = new tizen.ApplicationControl(
                "http://tizen.org/appcontrol/operation/default",
                null,
                null,
                null,
                extra_data
         )


I would appreciate any information you could provide.

Responses

10 댓글
Mykola Solyanko

Hello Kostiantyn S!

use the next code (Native)

        app_control_h a_control_inner;

        app_control_create(&a_control_inner);
        app_control_set_operation(a_control_inner, APP_CONTROL_OPERATION_DEFAULT);
        app_control_set_app_id(a_control_inner, "com.samsung.w-manager-service");
        app_control_add_extra_data(a_control_inner, "type", "gear");
        app_control_add_extra_data(a_control_inner, "deeplink", "samsungapps://MainCategoryList/");
        app_control_send_launch_request(a_control_inner, NULL, NULL);

        app_control_destroy(a_control_inner);

Kostiantyn S

Thank you Mykola!

This is very useful information.

Seoghyun Kang

Hello,

 

When I watched your code, I think you are creating the web application.

As Mykola Solyanko's comment, you need to use the AppControl API.

 

There are sample web application using AppControl in Tizen SDK. (AppCallee, AppCaller)

I think it will be helpful to you. It is very simple and easy sample

 

Please refer it.

Thanks.

Gaurav Singhal

Hi,

Does this mean that we can open Samsung Gear Appstore on Android phone connected with Gear S2, if we run the above commands on Gear S2 ?

Mykola Solyanko

Hi,

Yes

Gaurav Singhal

Hi,

 

I am developing web application for Gear S and Gear S2.

I tried to launch Gear Appstore on Android Phone from Gear S Emulator.

I am getting the following error:

launchUrl failed: given package is not found

 

Is it not possible to launch through Emulator or am I missing something ?

I also checked the comments in the thread

https://developer.tizen.org/ko/forums/web-application-development/wearable-send-intent-phone?langswitch=ko

 

but got the same error.

Mykola Solyanko

Hi,

It is not possible to launch through Emulator. You should use Gear S2 device only.

Gaurav Singhal

Hi,

 

I tried with Actual GearS2 device and it was successfull.

Thank You very much for the information.

Marco Buettner

The emulator doesnt have the fuckin store installed.

Gaurav Singhal

Hi,

How can I get the url of any particular Gear app available in Samsung Gear apps store.

I know a way to get url of app in Google Playstore, but unable to locate in Gear Appstore.