function onUpdate(dc) {
width = dc.getWidth();
height = dc.getHeight();
// clear screen
backgroundColor = getBackgroundColor();
System.println(backgroundColor);
dc.setColor(backgroundColor, Graphics.COLOR_TRANSPARENT);
dc.fillRectangle (0, 0, width, height);
...
prints 0 in 2.3 beta1
prints the expected 16777215 in 2.2.5