As of my understanding, this is not related to the value type, as of "new developers FAQ 10".
I am able to get a number, and I don't get a string/number error. But I do get a weird number.
I cannot seem to pass the property value to my code when I first launch the simulator. It work for when setting are in place, but the first time, with blank settings, I receive an error.
This is the code for my property values and settings. Used to define colors.
(Property values are 0,1,2,3. It did not work, so I tested with alternative options, including Hex.)<property id="clHl" type="number">0x555555</property>
<property id="cl1" type="number">0x000000</property>
<property id="cl2" type="number">0</property>
<property id="cl3" type="number">11</property>
<setting propertyKey="@Properties.clBg" title="@Strings.clBgTitle">
<settingConfig type="list">
<listEntry value="0">@Strings.UI_COLOR_White</listEntry>
<listEntry value="1">@Strings.UI_COLOR_Gray</listEntry>
<listEntry value="2">@Strings.UI_COLOR_Dark_Gray</listEntry>
<listEntry value="3">@Strings.UI_COLOR_Black</listEntry>
</settingConfig>
</setting>
My println return these values for those properties...:
43775
5592405
11184810
11184810
- How does it translate this? I actually need simple numbers (e.g.1) to use on a color array.
- Does the simulator behave differently than the watch, as you are forced to populate the settings before running it? I tried to use setProperty, but it still returns the same value.
I am a bit lost as I don't understand the logic of what is happening.