Data field works in emulator, but not on watch (VA)

Former Member
Former Member
I made data field (regular, not simple) and as title says it works in emulator, but on watch I only get 'IQ!' icon. Only one function onRefresh inside. Data field is restricted to VA only, SDK is 1.1.4 and FW on VA is 3.2. Memory in emulator is about 8k, no custom fonts or graphic, just plain numeric data presentation.

Any idea where to go from here?
  • That's honestly not much to go on for us to determine what's wrong....

    BTW - the simulator is not an emulator. There's a diff and one of the things that bugs us all (developers) is that while it works in the Sim, it may not work in the watch and vice versa.
  • Create an empty file on the va in \garmin\apps\logs named ciq_log.txt

    When you get the IQ! screen, you should get some info in that file as to what happened.
  • Former Member
    Former Member over 9 years ago
    This type of issue is frequently related to missing null checks. Data sources are not always available, and may return null. If you are accessing data from the ActivityInfo object, it may need to be null checked.

    For example:
    if( info.speed != null )
    {
    dc.drawText( 0, 0, Gfx.FONT_SMALL, info.speed, Gfx.TEXT_JUSTIFY_LEFT );
    }
  • Former Member
    Former Member over 9 years ago
    Brian, you nailed it, tnx. I was expecting to be something basic like that.

    Another lesson learned: Even if value is not null, it could be zero, and if you divide with zero (e.g. to get pace from speed) you will get same error. So check before division too ;)

    Jim, tnx for tip, it could be useful one day.