How do we test color watch face settings in VS?

I am learning Monkey C (hobby programmer) and am creating a watch face to learn.  I have most of it working.  The next step is to make the font color customizable via settings.  I've created the settings.xml, the properties.xml, and added the colors to strings.xml (I don't know why this here, but apparently it is required).  I've inserted code into my *View.mc file to act on the selection.  How do I know if it works?

All of the answers (instal it on you watch to test it) are for the the older SDK. 

Thanks,

Jeff

  • In the sim, go to file>edit persistent storage>edit application.properties data and you get a window to edit your settings

    Such as this:

    To change settings with a side load. it does need to be in the app store but can be marked as a beta app.

  • That worked!  Thanks.  Of course, now my watch is not applying the color. I have verified, using the DEBUG CONSOLE tht my app is receiving the changes.  It, for whatever reason is not applying them.

    Thoughts on that?

    var clockColorNum = Application.getApp().getProperty("ClockColor");
    System.println("Clock Color Loaded: " + clockColorNum);
    switch (clockColorNum){
      case 0:
        dc.setColor(Graphics.COLOR_WHITE, Graphics.COLOR_BLACK);
      break;
    ...
    // Get and show the current time & Zulu time
    var timeString;
    var clockTime = System.getClockTime();
    var zTime = Gregorian.utcInfo(Time.now(), Time.FORMAT_MEDIUM);
    var hours = clockTime.hour;
  • Look at having onSettingsChanged() in your appBase class.  When you change settings, that's called and you want to reload the properties.

  • I have searched for this for hours, thanks :-) and seemingly I have googled the wrong words, until now.