Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Changing the Canvas to full-screen mode on Symbian

From Wiki
Jump to: navigation, search

Archived.pngArchived: 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.

Article Metadata
CompatibilityArticle
Created: User:Technical writer 2 (10 May 2007)
Last edited: hamishwillee (08 Aug 2013)

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 8 August 2013, at 05:10.
63 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×