Changing the Canvas to full-screen mode on Symbian
Changing the Canvas to full-screen mode on Symbian devices.
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.