views:

76

answers:

1

I'm creating a canvas and setting it as fullscreen. In the canvas my getHeight() and getWidth() functions does not return the actual height and width of the full screen. It returns them as if I didn't set it to full screen.

How can I get the size of the full screen in nokia phones or other ones that have the same problem?

A: 

There might be a small delay between calling 'setFullScreenMode(true)' and for canvas actually going to full screen mode. Adding a small delay (~500ms) after the call to go full screen should do the trick

JaanusSiim