I have a FR630, running eclipse with SDK 2.2.4 on windows. My manifest file has minSdkVersion="1.3.0".
My datafield uses settings, pushes some memory limits, and overall should be pretty cool, however I'm coming across an error in my onUpdate field which prevents it from showing anything on the display. After placing some system.println's I have determined that the code below is causing the watch to "ERROR: Symbol Not Found Error"... So I tested a few cases, and discovered the following:
In my onUpdate function I run the following code in the simulator, and everything works fine:
Sys.println("1");
var t = Act.getActivityInfo();
Sys.println("2");
if (t has :timerState) {
Sys.println( "t has :timerState");
} else {
Sys.println( "t does not have :timerState");
}
if (!t.timerState.equals(Activity.TIMER_STATE_ON)) {
Sys.println("3");
dc.setColor( Gfx.COLOR_YELLOW , Gfx.COLOR_YELLOW );
}
Sys.println("4");
The output (when run in the simulator) is:
1
2
t has :timerState
3
4
However when upload this code to the appstore (because my datafield uses settings), and sync the app to my watch, the watch displays the exclamation point error, outputs "ERROR: Symbol Not Found Error" to the CIQ_LOG and the program output text is:
1
2
t does not have :timerState
Please help!!! Any ideas?? I'm not sure it would help any, but is there a way to get more debug information outputted to the text files, in particular the CIQ_LOG.txt?
The purpose of my code is to change the background of the datafield depending upon the state of the activity, off (yellow), on (either white or green depending upon another variable). any alternative coding methods that would work?