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 have uploaded a 'Test App' to the CIQ App Store, which I'm using when I need to test user settings.
    When I'm developing an app I need to test, I just update the 'Test App' in the App Store with the app I'm currently testing.

    It's not a perfect solution, but I think it works better than creating .SET files in the simulator.

    -Torstein
  • 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.

    I understand your frustration.
    Hopefully TORSTEINVH's answer is what you need. Unfortunately you'll have to wait for it to get approved. So not helping if you wanted it done now. But don't despair, once its approved it might help a lot!
  • Former Member
    Former Member over 9 years ago
    "I have simple methods to do it."
  • Former Member
    Former Member over 9 years ago
    It's not a perfect solution.


    Its not solution, It is execly that what I can't do (upload and sync from store)
  • Former Member
    Former Member over 9 years ago
    You can cheat with side-loaded apps using the sim:

    <snip>

    * Copy the settings file to /GARMIN/APPS/SETTINGS on your device, replacing the default settings file



    Curious, on that last step, do you mean replace the SETTINGS.FIT file that is in that location with my app's .SET file from the tmp directory? The only file on my device in the SETTINGS directory is SETTINGS.FIT when I start this process.

    Thanks,
    Ron
  • Former Member
    Former Member over 9 years ago
    Check your device again.

    Make sure you are looking in ?:\GARMIN\APPS\SETTINGS and not ?:\GARMIN\SETTINGS
  • Question from a newbie to GarminExpress settings.

    If the settings works in the eclipse sumulator, what else I have to do to make them working in GarminExpress except
    loading up the WatchFace to the store?


    When I click on the option button a message appers, that I have to update the Watchface to do this.

    Anyone could help me.

    I loaded it up 30 minutes ago, is this a problem?