English 中文(简体)
Hide virtual keyboard for fullscreen j2me app
原标题:

I developed a J2ME app using LWUIT and it works fine but when I try the app on a mobile phone with Windows Mobile 6 it displays the virtual keyboard overlapping the softkeys until I double clik it.

I already tried to use the following attributes on the application jar but they didn t worked:

Navi-Key-Hidden: true
Nokia-MIDlet-On-Screen-Keypad: no

Does anybody knows if there is the same option for Windows Mobile 6 phones (or other versions) or another hack to hide it?

问题回答
    Display.init(this);
    Display.getInstance().setDefaultVirtualKeyboard(null);

write this command after Display.init() as shown above.

You might want to try this parameter as well. But be warned, with this jad parameter some nokia devices wont install the application at all.

MIDlet-Touch-Support: true

And dont forget to run setFullscreen(true) on your Canvas. Some older devices even require that you run it every repaint.

There s also a few LG parameters that might help sometimes;

LGE-MIDlet-TargetLCD-Width: 240 

LGE-MIDlet-TargetLCD-Height: 320

LGE-MIDlet-Width: 240

LGE-MIDlet-TargetLCD-Width: 320

Good luck!





相关问题
add text in http request string url

ok i made a midlet through which i can connect to server pages and get soem information as response. For example i made a midlet through which i acced url: http://example.com/?u=nepal&t=1 Now i ...

Do I have to do a setSize() on a Vector before using it?

Given private final Vector v = new Vector(); //instance variable the following 3 lines are in an instance method in the same class. 1. int length = v.capacity(); 2. int size = v.size(); ...

Is the situation with Java ME improving?

It seems to be the consensus that developing for Java ME is not as cross platform as you might expect, particularly compared to say java SE, but it is difficult to assess how the situation is evolving....

Privileged operations in netbeans mobility

I m writing a Java ME app that will use privileged operations such as messaging. By default the user is prompted to confirm each of these operations, but I would like to run it as a background ...

ClassFormatError: 56 while using hessian in j2me

I am trying to use the hessian j2me implementation @ http://hessian.caucho.com/ using java me sdk 3.0. http://hessian.caucho.com/doc/hessian-overview.xtp#Hessian%20Client%20for%20a%20cell-phone ...

热门标签