Name of .DAT/STR/IDX/IMT files in apps\data folder ? How are they generated ?

I need to store 2 sets of storage data for my datafield app ( long story but the spinbike at the gym and my indoor trainer give widely differing power readings ).

I would like to write one set of source code and have it create two sets of data files.

I cannot find what setting or file name in the source project controls the name of the data file. I have tried renaming the project and changing the app name.

I can have two datafields in my watch and select them both independently but both apps ( different .prg file name, different app name and different ID ) give the same .DAT file name.

Anyone know where the name of the file is generated from ?

Thanks.

Tim.

Top Replies

  • Anyone know where the name of the file is generated from ?

    The .str files are when you use the old calls for the object store without a property (getProperty()/setProperty())

    The other 3…

All Replies

  • Anyone know where the name of the file is generated from ?

    The .str files are when you use the old calls for the object store without a property (getProperty()/setProperty())

    The other 3 are when you use Storage.setValue()/getValue().

    The first part of the names are the same as the first part of the prg file name.

    When you see the same names being used, that's based on the id in manifest.xml and whichever was there first.  Is this when you are doing sideloads?  When you install from the app store, the first part of the names is always 8 characters long and generated by the store. The store will also prevent you from having two apps with the same manifest id.

    So, with one set of code generating two different apps, you need a different manifest.xml for each but everything else can be the same.

    If you changed name of an app but didn't change the manifest, you could have a mix in the sim's temp directory, and you probably want to clean it out.  On windows, it's in %tmp% and then 

    com.garmin.connectiq/garmin

    so for me, C:\Users\James\AppData\Local\Temp\com.garmin.connectiq\GARMIN>

    Under Garmin is a layout just like on a real device

  • Thanks for your reply.

    My app was called 'pwrCurve' and when i tested the second copy I was lazy and called it 'pwrCurve1'.

    The OS on the watch truncated the name and gave me my problem. 

    All sorted now with names that are different and indeed I know have 2 sets of files.

    Once again, thanks.

    Tim.