User application settings

For most wanted watchface feature - look into a new ObjectStore sample how to define default properies and setting options.

Here is a color configuration example:
<resources>

<properties>
<property id="PROP_COLOR" type="number">1</property>
</properties>

<strings>
<string id="title_color">Color</string>

<string id="opt_color_1">Blue</string>
<string id="opt_color_2">Red</string>
<string id="opt_color_3">Green</string>
</strings>

<settings>
<setting propertyKey="@Properties.PROP_COLOR" title="@Strings.title_color">
<settingConfig type="list">
<listEntry value="1">Rez.Strings.opt_color_1</listEntry>
<listEntry value="2">Rez.Strings.opt_color_2</listEntry>
<listEntry value="3">Rez.Strings.opt_color_3</listEntry>
</settingConfig>
</setting>
</settings>

</resources>


Please note that property must be a number if you can use the list of options.

Then, just load your property in the code, for example:

function onSettingsChanged() {
var color = App.getApp().getProperty("PROP_COLOR");
handleYourColorChangesHere(color);
Ui.requestUpdate();
}
  • Former Member
    Former Member over 9 years ago
    I'm set 23-11-2015 from Mac version of GE, I got in watch 2015-11-23 17:00:00 (in numeric 1448294400) - what is 17h ?????? I'm in central europe.
    From android GCM I can't change this values.

    I display it on 1.14 version of rugged - last digit is date (numeric:date) previous is just number.
  • I'm set 23-11-2015 from Mac version of GE, I got in watch 2015-11-23 17:00:00 (in numeric 1448294400) - what is 17h ?????? I'm in central europe.
    From android GCM I can't change this values.

    I display it on 1.14 version of rugged - last digit is date (numeric:date) previous is just number.


    I'm not sure I understand your problem.

    But 17h is the 24hr mode equivalent of 5 pm in 12hr mode
  • Former Member
    Former Member over 9 years ago
    I'm not sure I understand your problem.

    But 17h is the 24hr mode equivalent of 5 pm in 12hr mode


    And?

    I set date, I can't set time, and I espect timestamp in 00:00 UTC or in documented timezone, or I don't know what I do.

    THIS IS HORRIBLE, I MUST UPLOAD DIAGNOSTIC VERSION TO STORE, AND ANYONE CAN'T HELP. DONT'T ANSFER, MAKE CHANGES IN 9 MONTS.
    MY ANDROID VERSION SAVE OTHER VARIABLES, MAC DIFFERENT, ON DISPLAY I SEE OTHER

    GARMIN - WE HAVE 1 WEEK, WE MAKE DEVELOP ENVIROMENT USABLE, AND STABLE, AND SITE LOAD WITH TESTING
    I DELETE MY APPLICATION NOW.
  • And?

    I set date, I can't set time, and I espect timestamp in 00:00 UTC or in documented timezone, or I don't know what I do.

    THIS IS HORRIBLE, I MUST UPLOAD DIAGNOSTIC VERSION TO STORE, AND ANYONE CAN'T HELP. DONT'T ANSFER, MAKE CHANGES IN 9 MONTS.
    MY ANDROID VERSION SAVE OTHER VARIABLES, MAC DIFFERENT, ON DISPLAY I SEE OTHER

    GARMIN - WE HAVE 1 WEEK, WE MAKE DEVELOP ENVIROMENT USABLE, AND STABLE, AND SITE LOAD WITH TESTING
    I DELETE MY APPLICATION NOW.

    Please send me a private msg and I'll see if I can help.
    First of all, your message is not very understandable. I am willing to try and take the time and understand exactly what you are trying to do.

    Some sample code will go a long way.
  • Former Member
    Former Member over 9 years ago
    HermoT

    Yes I know my english is poor. I try write good I can.

    But my problem is highest - this is not code problem. I can write good soft, I can upload to store/sync/check and again again again 15 minutes on test.
    But this not respect my time. I spended many time on ciq, I can write in many languages (C, php, js, java, pascal and many more).

    If You have help? Talk with Garmin.
  • HermoT

    Yes I know my english is poor. I try write good I can.

    But my problem is highest - this is not code problem. I can write good soft, I can upload to store/sync/check and again again again 15 minutes on test.
    But this not respect my time. I spended many time on ciq, I can write in many languages (C, php, js, java, pascal and many more).

    If You have help? Talk with Garmin.

    I believe you write good code. There are bugs in CIQ, and we can get it fixed by Garmin if we have clear reproduction steps and details.
    I just first need to understand myself what the issue is that you experience with CIQ.

    So when you feel up to it, please take me step by step through it so I can reproduce it.

    I will help you.
  • Former Member
    Former Member over 9 years ago
    Ok, I want compile src, upload .prg to may watch (not via store) from my mac and set properites - when watchface is running.
    You can help me?
  • Ok, I want compile src, upload .prg to may watch (not via store) from my mac and set properites - when watchface is running.
    You can help me?


    So the issue is the inability for you to side load a .prg and be able to change settings while it is running?

    Unfortunately for now there is not anything anybody can do about that right now.
    However, you have the option to "cheat" by running it in the simulator, set the settings there, locate the .SET file, rename it to the name of the prg on the watch, connect the watch to usb, and copy the .SET file into garmin/apps/settings folder.
    Here is the official post explaining this procedure.

    How about we try and assist you with the issue you want to debug / troubleshoot?
    That is the best we can do now.
  • Former Member
    Former Member over 9 years ago
    I can debug my code, I have simple methods to do it.

    Not resolve this one issue.

    I have dialog with Garmin API developers, ansfer to question why property can't sent from watch? And other unansfered question (look my posts from this year).
    - access to phone status,
    - access to POI data
    - watchface colors/setings in watch directly - not via cloud
    and many more.
  • Former Member
    Former Member over 9 years ago
    However, you have the option to "cheat" by running it in the simulator, set the settings there, locate the .SET file, rename it to the name of the prg on the watch, connect the watch to usb, and copy the .SET file into garmin/apps/settings folder.
    Here is the official post explaining this procedure.


    Are You kidding? Are You try this?
    I can't check onchange procedure, I must reconnect watch twice, I can't check updates from real phone (are diferent!). I can't check changest on the fly.

    I realy know what I want. Don't send me hacks. I read whole forum.