언어 설정

Menu
Sites
Language
where to find code of original watch faces?

Hi everyone, 

I have been using the tutorials that came with the sdk, google searching and trial and error to make a watch face for my gear 2. So far i have done very basic stuff as I am new to JS and tizen but I think its still an achievement for me. 

I would like to put some of the features that are part of default watch faces to my watch faces, I am trying to get the weather and the shortcuts to work the way they do in the default ones, but I haven’t found any api's that allow me to do it.

So I was wondering if I could find the original code I might able to use it to understand how to implement it.

If someone can also tell me how to share what I have done so far I will upload it.

thanks for the help.

 

Responses

3 댓글
John Wright

looking around I have come across this., time to see if it works.

any more help will be appreciated

daniel kim

Hi,

As we can launch specific application using application launch in wearable, you can implement shortcuts as below example (you need to replace 1aO2U7BHUR.basic with your application id).

 

        var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view",  null, null, null, null);
        tizen.application.launchAppControl(appControl, "1aO2U7BHUR.basic", function() {console.log("launch application control succeed");}, function(e) {  console.log(e);},  null);

 

Explicit Launch

    If you specify the exact application ID of the application for the launchAppControl() method of the Application interface, you can request the application control from a specific application. The application ID determines which application is launched and the application performs the operation as specified in the control request.

 

I would suggest you to refer to below Help page in IDE. 

     Tizen Wearable Web App Programming > Programming Guide > Device API Guides > Application Guides > Application > Application Controls

 

I wish this will help you.

AVSukhov

Hello,

Platform source of Gear is not opened.

According daniel kim, you can use AppControl functionality for using specific operations exported by other applications, such as calling, Web browsing, and playing media items. It allows you to launch other applications whose functionalities you need in your application.