Changing the Canvas to full-screen mode on Symbian
The article is believed to be still valid for the original topic scope.
Article Metadata
Compatibility
S60 3rd Edition and FP1
Article
Overview
Changing the Canvas to full-screen mode on Symbian devices.
Description
Canvas contains a method to set itself to be shown in full-screen mode. The method call is <canvas object name>.setFullScreenMode(true).
On Symbian phones the setFullScreenMode(true) does not set the screen to full screen immediately. If the MIDlet calls getGraphics() right after calling the setFullScreenMode() method, it will have the wrong height. Similarly an incorrect height will be returned if the getHeight() method is called immediately after setting the Canvas to full screen.
One possible solution is to call the setFullScreenMode() method, start a new thread from the showNotify() method, and then in the run() method call getGraphics() or getHeight() and start the application.


(no comments yet)