언어 설정

Menu
Sites
Language
Gear s3 : possible to communicate between our apps ?
Hi, Seems there's api for communication between our apps, for instance between watchface, and widget/ another own app/service Is it available for gear/ wearable ? Anyone has experience with it ? Thanks

Responses

14 댓글
Shaswati Saha

There're different ways to communicate between two application packaged together. At first, go through the link below to know in which combination two different applications can be packaged.
https://developer.tizen.org/ko/development/training/native-application/application-development-process?langredirect=1#develop


Now, go through the links below to know about the commucation ways in details.

1. You may use the add extra data functionality of Application Control. Link: https://developer.tizen.org/development/guides/native-application/application-management/application-controls#use 

2. You may use application preference and set/get different types of data. Link: https://developer.tizen.org/development/guides/native-application/application-management/application-preferences 

3. You may use message port communication (both in uni or bi directional way). Link: https://developer.tizen.org/development/guides/native-application/application-management/application-data-exchange/message-port

 

Hope it'll help!

Tizen is me

Thanks, and is it possible to create watch face app, and then the setting for watchface is in another app? 

I think this is good solution for configuring the watch since rotating bezel and back button not works on watch face app,

and can watchface bundled with another app (not service) ?

 

Shaswati Saha

Unfortunately, It's not possible to package Watch app with an UI app according to the Combinations table in this link. Would you please share the exact requirement here so that a better way can be thought?

Tizen is me

Yes, I think the watch face app lacks of good customizing/settings UX, so I'm visioning about maybe click a button that can open an app for  customizing 

the watch face that can have rotating bezel and back button (NaviFrame), if this can be realized with sharedPreferences it will be very helpful

The example of this UX is in IOS, there's setting app for customizing app

 

Thanks Shaswati Saha

Shaswati Saha

In that case, you may go with the first approach I'd mentioned in my first reply. I think it'll be suitable for your requirement. Simply launch the settings app from the Watch app and Update the UI of watch app according to the changes made in the settings app by using extra data functionality of Application Control. And the good thing is, you don't need to package both applications together to use that specific functionality.

Tizen is me
Thanks I'll try it
Shaswati Saha

Did you try it? What's the update?

Tizen is me
Hi, Sorry havent got to try it busy trying the bluetooth connection :) I think your solution is spot on, but I wondered if it could work for watchfaces ? After doing setting in the "setting app" that we created, to update the setting, shouldnt we launch the watchface ? Can we launch the watchface like regular app (never tried this before) Thanks
Shaswati Saha

Yes, I've tried to check it and it works for watchfaces too as Watch applications also have the app_control state in their application life-cycle. You may receive the "settings" data of UI app in this state.

Tizen is me

Thanks for the confirmation, I'll try your solution

Vladyslav Prysiazhnyi

Hi Everybody!

 

There is easier solution for settings in watchface that need to use bezel or HW back button.

I did this by creating a new window by elm_win_add() function. This will create new window with your UI like another application.

 

And then you will not need to create separate UI application, and implement messaging between watchface app and UI app.

 

I hope this information will help you!

Tizen is me

Hi Vladyslav Prysiazhnyi,

 

Cool tips !!

Tizen is me

Hi Vladyslav Prysiazhnyi,

Unfortunately, the creating a new window by elm_win_add() function has bug or something when using it with watch app, for example it will crash if I use elm_entry_add after keyboard shown and using elm_spinner_add after tap to focus on the selection (happened only on device, emulator works fine)

And maybe its a bug because after couple of retry, then the spinner works, and after spinner works, the entry works too

 

Do you have the information about it ?

 

Thanks

Tizen is me

Oh and I forgot, tried the same call using regular app is work on device, only watch app that is crashed