Instructions: How to modify existing projects to work with SDK 0.2.4 in Eclipse

Former Member
Former Member
1/ It seems the the simulator is currently unable to handle spaces in the path, so you will need to change your working folder to one without spaces in the pathname. Move your projects to this location.

2/ You will need to modify existing apps to work with the new SDK. To do this open your manifest.xml file and locate <iq:application ... name="*" ...> (where * is your app name).<iq:manifest xmlns:iq="www.garmin.com/.../connectiq" version="1">
<iq:application entry="FixApp" id="E21311C04BC542DABF4A6C1E87F9449D" name="Fix" type="watch-app">
.......
</iq:manifest>

Next open your resource.xml file and add <string id="*">Type an app name here</string> as a child of <resources>
<resources>
<string id="Fix">Fix app</string>
......
</resources>
  • Thanks for that :) Ideally the release notes would include a short section saying how to upgrade Eclipse and any required changes to existing projects from the last public release of the SDK.
  • It's right there in the README.txt

    * Added launcher icon support. The launcher icon and app name must now be specified as
    resource IDs. The launcher icon is optional (a default icon will be compiled in). If
    resources are specified as:
    <resources>
    <string id="AppName">My App</string>
    <bitmap id="LauncherIcon" filename="images/launcher_icon.png" />
    </resource>
    The app name and launcher icon in the manifest would be:
    <iq:application name="AppName" launcherIcon="LauncherIcon">
    The manifest file for existing projects must at least specify a name as a string
    resource or they will not compile.
  • No, I mean a short "Upgrading from X.X.X" section that describes how to upgrade from the last public release of the API, and *just* a list of incompatible changes which will break your existing projects. Separate to the detailed changelog (which has all sorts of stuff in it.)
  • Former Member
    Former Member over 10 years ago
    My bad I didn't read down that far.

    What about the pathname, am I wrong about that? Because I can't see that in the readme.
  • Yeah, I don't know about the spaces in filenames issue. I almost never create folders/files with spaces in names because it causes some problems so frequently.
  • Former Member
    Former Member over 10 years ago
    Curse of using Windows XP. Documents & Settings, My Documents.
  • Former Member
    Former Member over 10 years ago
    Hm. I get an error and my app already has a name:

    BUILD: ERROR: stdin:2888: Unable to resolve app name. Check the manifest file.

    Here is the line from my manifest:
    <iq:application entry="AggieWatchfaceApp" id="4321050D239441F69F35FB4180F0724E" name="AggieWatchface" type="watchface">
  • The name entry is now the id of a string resource which contains the name. Make sure that you have a matching string resource in one of your resources file. We changed how this works to allow for the App name to be translated.