• After a good deal of testing I have come to the conclusion that either I am handling widgets incorrectly in the app I am working on, or at least one widget (RAM Widget in this particular case) is misbehaving. The problem can be demonstrated with this simple code snippet:

    g.drawString("hello world",64,64);

    The string "hello world" appears on the display somewhat to the left of the expected 64,64. If I comment out the Widgets lines, it appears at 64,64 just fine. Battery Level Widget (with percentage) and Bluetooth Widget don't cause this problem. So is it my code, or is it RAM Widget, or possibly even the firmware?

  • Most likely the RAM widget is changing the text alignment. Best practice is to call g.reset() before you start drawing in order to reset the graphics object to a known state.