Namespaces
Variants
Actions

Changing the Canvas to full-screen mode on Symbian

Jump to: navigation, search
Archived.png
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.


SignpostIcon Asha UI.png
Article Metadata

Compatibility
Platform(s): S60 2nd Edition and FP1, FP2, FP3
S60 3rd Edition and FP1

Article
Created: User:Technical writer 2 (10 May 2007)
Last edited: lpvalente (31 Oct 2012)

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.

This page was last modified on 31 October 2012, at 20:34.
135 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved