App settings editor in the Simulator

Has the app settings editor disappeared from the simulator? On the Connect IQ Device Simulator on the Mac that came with SDK 3.0.10, I can't see any menu option to edit the Settings.

When running my app (which does have settings) , the only option that looks hopeful, File>Edit Persistent Storage>Edit Application.appBase data:

     

reports "No values defined".

I believe there used to be such an option.

Oh, yes... there's more.

II have found by trial' and error that it's quite hard to change a property's value in the simulator by editing its value in the properties.xml. 

I have found that the only way to achieve a change to a property's value from false to true is to

  1. run the app with the initial value and observe its value is false
  2. comment out the property in <properties>,
  3. run the app and observe the value is now null,
  4. restore the property with the new value of true
  5. run the app and observe the property value is now true

If I simply edit the value from false to true, and save it, the app sees the previous version (false).

  • Former Member
    Former Member over 6 years ago

    I personally use the App Settings Editor in the Connect IQ plugin in Eclipse. I've not seen any ability to edit watch-face settings in the simulator itself in any of the versions I've tried.

  • Where do you find the app settings editor in Eclipse? Are you on Mac or Windows?

  • Former Member
    Former Member over 6 years ago in reply to Alan.raceQs

    This was in Windows - under the Connect IQ menu (obviously with the Connect IQ plugin installed), and it is the first menu item, App Settings Editor.

  • When you do this from the sim, you are changing the Object  store/Application.Storage. (that's why you could do it if you comment out the "property" - it's no longer a "setting")

    To change settings, you use the app settings editor in Eclipse, as that simulates what happened from GCM or the Connect IQ Store app.

  • My point is that I can't see an "app Settings editor in Eclipse" Maybe it's a Mac thing???

    The Simulator menu has:

    The File option has

    The Settings entry has:

    There's no app settings option!

  • You're looking in the sim and not in eclipse.  Go to eclipse, and you'll see "Connect IQ" on the menu bar.  Click on that, and the first item is the "App Settings Editor"..  It's in the same menu as things like "Build for device wizard" and "export wizard"

  • Former Member
    Former Member over 6 years ago in reply to Alan.raceQs

    For reference, here is a screen shot from my mac using 3.1.0.beta2:

  • Now you’re just rubbing it in, (and showing off)! ;-)

  • II have found by trial' and error that it's quite hard to change a property's value in the simulator by editing its value in the properties.xml. 

    I have found that the only way to achieve a change to a property's value from false to true is to

    1. run the app with the initial value and observe its value is false
    2. comment out the property in <properties>,
    3. run the app and observe the value is now null,
    4. restore the property with the new value of true
    5. run the app and observe the property value is now true

    If I simply edit the value from false to true, and save it, the app sees the previous version (false).

    There is a good reason for this -- the value of a property in the <properties> XML is only used when that property does not exist (as you have surmised). It is a default value.

    If it didn't work that way, then you would be unable to test a situation where the user changed app settings (linked to properties) or the app itself changed a property in code.

    change a property's value in the simulator by editing its value in the properties.xml. 

    If you still need to do this (I do it all the time, for reasons that aren't relevant here), you can accomplish it simply by:

    1. Changing the property in the XML file
    2. Running the app
    3. Selecting "Reset All App Data" in the simulator (this will also cause the app to restart).

    Of course this won't work if you had other app data you needed to preserve....