Unique keys for getProperty()/setProperty() ?

Former Member
Former Member
There doesn't seem to be anything in the API docs or Programmers Guide PDF about choosing keys for Application getProperty()/setProperty().

I was very surprised to find my test app reading properties that had been previously set by a completely different app! (the samples/ObjectStore). Surely each app should have private properties that cannot be read or written to by other apps? Or at a minimum there needs to be an agreed scheme to let users choose unique keys for their own apps?

Thanks
  • This is probably a bug with the emulator.
    It was commented here that there would (unfortunately) be no way for 2 apps to communicate or share properties. I'd love to be wrong though ;)
  • Yeah, I'm almost certain that this is just an issue with the emulator. It appears to create a file that holds the persistent data in %temp%\GARMIN\APPS\DATA\APP.str. As you can see, the file isn't unique to the application, so you'll get the settings from the other program unless you delete the file between runs.
  • This is an issue with the Windows simulator. This is on our list to be fixed, but in the mean time you can delete %temp%\GARMIN\APPS\DATA\APP.str when switching apps to prevent reading another app's property.