App name display error

Hi,

I'm making a datafiel for EDGE device.

When downloading the beta version from Garmin store, the name of it in EDGE device will show as a combination of numbers and letters。

This problem only happened on edge1000 and edge520.

Has anyone ever had a similar problem?

Thanks for any help.

Top Replies

All Replies

  • Can you provide more details, the sample does not look different from my code

  • There is something different between the sample and your app as far as how/where things are defined so you need to compare how things are being done.  Notice how the AppName string is only defined once.

  • There is something different between the sample and your app as far as how/where things are defined so you need to compare how things are being done.

    Just out of curiosity, do you think it's possible that there's actually a Garmin bug here, since the OP claims it only happens on Edge 1000 and Edge 520?

    I think an interesting test here would be to build the Strings sample for Edge 1000 and Edge 520, and see if the same thing happens.

    Notice how the AppName string is only defined once.

    Are you implying that it's not possible to localize the app name for different languages? I would expect that's the whole point that Garmin has the app name in the manifest point to a string resource as opposed to having it as a literal string: so you can localize it. I would consider it a bug if Garmin said "your app name must be a string resource", but then when you localize it in the supported way for string resources, it doesn't work.

    If the OP somehow did something wrong, like not having AppName available for every language supported by the app (e.g. because it's not defined in a default resource location), then I would expect that to be a compilation error.

    For example, if manifest.xml's app name doesn't point to a valid string resource (in this case, say Strings.AppName does not exist), you do get a compilation error.

    When downloading the beta version from Garmin store, the name of it in EDGE device will show as a combination of numbers and letters。

    This problem only happened on edge1000 and edge520.

    For which device(s) does it work properly, just out of curiosity?

    2. I change the file: Modified the code, added .xml files used in different languages, and added a properties.xml file. And then export and download, as a result, the datafield name change to number.......

    What happens if you add strings.AppName to all the other language-specific resource files, just out of curiosity? Not that I think you should have to, but it might help determine the nature of the bug here (if there is one).

    What's the language set on your device? Is it English? Is your device's language explicitly listed in the app manifest? Do you have a string resource file for your device's language (say, English) with Strings.AppName defined? (Again, I don't think you should have to do this, but I'm curious.)

  • re you implying that it's not possible to localize the app name for different languages?

    No, I'm saying it's only defined once in the Strings sample

  • re you implying that it's not possible to localize the app name for different languages?

    No, I'm saying it's only defined once in the Strings sample

    In context, you're implying that if someone were to define it more than once, then it could cause the behavior OP is seeing. And one reason to define a string more than once is to localize it. (Another reason would be to have different strings for different devices.)

    The overall implication is that "it's wrong define the app name string resource more than once".

    There is something different between the sample and your app as far as how/where things are defined so you need to compare how things are being done.  Notice how the AppName string is only defined once.
  • Thank you at first,

    1. I make a project for every edge devices expect for edge130/130plus/520. Only edge1000 has this problem.

    2. In ./strings/string.xml, I define "@Strings.AppName" for sure.

    3. It is for sure that No duplicate definition。

    4. edge1000 and 520 have the same api level 2.4, others is 3.0+

  • But do you have resources, and resources-edge1000 (for example)? with strings.xml under both And AppName in both xml files?

  • 1. I make a project for every edge devices expect for edge130/130plus/520. Only edge1000 has this problem.

    Right but you also said this:

    When downloading the beta version from Garmin store, the name of it in EDGE device will show as a combination of numbers and letters。

    Do you actually own all these other Edge devices to be able to test them in this manner?

  • This is my files and the appname ony appears in ./resources/striungs.xml