سؤال

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?

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top