Simulator - Clearing App Properties

Forgive this probably simple question, but is there a way through the simulator UI to clear the application properties referenced through the AppBase class? I thought at some point I was able to use the Kill App or Suspend App menu item to achieve this but I'm guessing I'm mistaken. If there is no way through the simulator, I'm guessing during test I'll just need to programmatically execute AppBase.clearProperties() with some test code?
  • Forgive this probably simple question, but is there a way through the simulator UI to clear the application properties referenced through the AppBase class? I thought at some point I was able to use the Kill App or Suspend App menu item to achieve this but I'm guessing I'm mistaken. If there is no way through the simulator, I'm guessing during test I'll just need to programmatically execute AppBase.clearProperties() with some test code?


    That's how I've been doing it.

    I've been maintaining flags that allow me to control the state of the app for testing. To be safe, I further wrap it in a general DEBUG flag which I make sure is `false` before release.

    if (DEBUG && DEBUG_CLEAR_PROPERTIES) {
    AppBase.clearProperties();
    }


    Optionally, I also comment out this test code before a release so it never makes it into the binary (keep things lean and mean).
  • Former Member
    Former Member
    You can also delete the file off your machine. For windows it can be found in C:\Users\\AppData\Local\Temp\Garmin\Apps\DATA
  • Thanks for the responses, exactly the info I was looking for!
  • On Mac, with sudo find / -name GARMIN
    I found them at :
    /private/var/folders/ly/qnh242bx7z98fz51w0yvjvjm0000gn/T/GARMIN

    But deleting the DATA folder didn't succeed. I renamed the GARMIN folder to GARMIN.orig and that did the trick.
  • In the sim, under "File", there's "Reset All App Data", It clears settings (.set) and the .str file.

    BTW, the data directory is for things like the .str file. App settings are in the settings directory (the .set file)

    This is an old thread (2015) and some things have changed. Back then it was just the .str file.
  • Ah, that's where it is. Thanks.
    Is there a similar method to remove Properties from the Watch? I have done it by deleting the file in GARMIN/SETTINGS.