3

I have an app (LWUIT, Java Me). When I run the app on device, it occupies the complete screen.

But I want the top panel (notification bar of device) to be visible.
What are the solutions? Are there any settings for lwuit?

midhunhk
  • 5,560
  • 7
  • 52
  • 83
Tim
  • 1,606
  • 2
  • 20
  • 32

1 Answers1

3

In J2ME/LWUIT you need to find the current canvas and just call setFullScreenMode(false) or alternatively enable the native commands (via Display.setCommandBehavior).

I would recommend against this since the result would look/behave radically differently between devices.

Shai Almog
  • 51,749
  • 5
  • 35
  • 65
  • Same as you always do in MIDP. Within the MIDlet get the MIDP Display and get the current canvas. Make sure to do it AFTER invoking show(). – Shai Almog Feb 16 '12 at 06:13
  • I tried: javax.microedition.lcdui.Display.getDisplay(this).getCurrent().setFullScreenMode(false); But class Displayable hasen't got method setFullScreenMode. – Tim Feb 21 '12 at 14:04
  • You need to downcast the Displayable to Canvas – Shai Almog Feb 23 '12 at 05:07