Announcement

Collapse
No announcement yet.

save file on the watch

Collapse
X
  • Time
  • Show
Clear All
new posts

  • save file on the watch

    I would know if I can save a file on the watch like FIT file

  • #2
    Well, do do a .fit file in a watch-app, you do it by way of ActivityRecording.

    If you want to save something between runs of your apps (only your app can access it) you use Application.Storage.

    If you want to save something to a log file, you just use something like Sys.println() for console output, but you must pre-create the log file on the watch in \garmin\apps\logs named <myapp>.txt where <myapp> would match <myapp>.prg. And remember, when downloading from the store, <myapp> is generated by the store (an 8 char string) so you'll have to figure out what that is. Also, when the file get to a certain size (5k or so), it becomes a .bak, and a new .txt is used, so you can have about 10k at most. This really only should be used for debugging on the watch.
    My Connect IQ Apps in the Store
    Facebook - Instagram -
    Twitter

    Comment


    • #3
      thanks

      Comment

      Working...
      X