App Settings Editor in Eclipse not working for WatchFace

Former Member
Former Member
Hi there,
I'm trying to add some configurable settings for my watch face since not everyone likes a "crowded" watch face. So its mostly just boolean/ticks I want to add to the settings editor to turn on and off some features of the watch face.

However, when I tried to get the Property it always returned null and opening the App Settings Editor does not show any settings. Also the progress bar which is usually shown to connect to the simulator does not appear.
When I create a new watchface project with settings the default settings appear in the App Settings Editor.

Could it be that I'm missing a setting or something somewhere in my Watchface code (since i started that with SDK 1.x.x) to actually enable this?

Just as a reference, that is how my properties.xml looks like:
<resources>
<properties>

<property id="appVersion" type="string">0.0.1</property>
<property id="StepProgressBar" type="boolean">true</property>
<property id="ActivityHistory" type="boolean">true</property>
<property id="Date" type="boolean">true</property>
<property id="Seconds" type="boolean">true</property>

</properties>

<strings>

<string id="StepProgressBarTitle">Step Progress Bar</string>
<string id="ActivityHistoryTitle">Activity Profile</string>
<string id="DateTitle">Date</string>
<string id="SecondsTitle">Seconds Hand</string>

</strings>

<settings>

<setting propertyKey="@Properties.StepProgressBar" title="@Strings.StepProgressBarTitle">
<settingConfig type="boolean" />
</setting>

<setting propertyKey="@Properties.ActivityHistory" title="@Strings.ActivityHistoryTitle">
<settingConfig type="boolean" />
</setting>

<setting propertyKey="@Properties.Date" title="@Strings.DateTitle">
<settingConfig type="boolean" />
</setting>

<setting propertyKey="@Properties.Seconds" title="@Strings.SecondsTitle">
<settingConfig type="boolean" />
</setting>

</setting>

</settings>
</resources>
  • What version of the SDK? Nothing jumps out to me. When you try to use the settings, is your WF running in the sim? In the project's bin directory, is there a .json file for the settings?
  • Former Member
    Former Member
    I'm currently using SDK 2.41.
    The watchface itself is running as it should. The properties code part is just ignored since it only returns null.

    However, the .json file is missing. Is this also created when I only run the WF in simulator? What do I need to do to enable this?

    Thanks!
  • When you run the app in eclipse it gets created as part of the compile process. If that's not happening, it's not finding the xml file you posted. Where is it in your project structure? It should be under the resources directory (or the resource overrides)
  • Former Member
    Former Member
    HAHA, so stupid. Didn't realize that I must have accidentally draged it from the resources folder to the project folder.
    The XML file is actually in the a folder called 'settings' but this one was not anymore under resources for some reason.

    Now it works! Thanks a lot.