2

I tried set fullScreenMode(false) for my app (LWUIT). But can not get Canvas.

1 way: com.nokia.mid.ui.LCDUIUtil.setObjectTrait(javax.microedition.lcdui.Display.getDisplay(this).getCurrent(), "nokia.ui.canvas.status_zone", Boolean.FALSE);

2 way: javax.microedition.lcdui.Display.getDisplay(this).getCurrent().setFullScreenMode(false);

But I have error. Method getCurrent() return class Displayable which don't have method setFullScreenMode().

Also I tried javax.microedition.lcdui.Canvas)javax.microedition.lcdui.Display.getDisplay(this).getCurrent() but it return null.

What is way for resolved this problem?

Chuck Norris
  • 15,207
  • 15
  • 92
  • 123
Tim
  • 1,606
  • 2
  • 20
  • 32

1 Answers1

3

The last way is correct, you need to use it AFTER invoking form.show() for it to actually work.

Shai Almog
  • 51,749
  • 5
  • 35
  • 65