Unwanted virtual keyboard in Blackberry app
I have developed a Blackberry app for the 4.5 os series. It works fine on all 开发者_JAVA技巧device except on the storm 1 (storm2 untested).
The problem (on the storm) is that the main screen of my application (and all other screens in fact) is shown with the virtual keybord. But there is no text field displayed on the screen that would justify the VK to show up. I have bitmap fields and button fields only on that screen. The use of a single program for all devices (4.5 and up) is seriously preferred.
What is causing the VK to show up and what can I do to prevent it (in JDE 4.5)?
You could compile your application for OS 5.0 or 4.7(depending on the OS on the device) on the storm to make sure the app will not run in compatibility mode.
Or you can change how your app is setup in the JAD.
Here is a KB article from RIM
RIM-TouchCompatibilityMode: false
RIM-TouchCompatibilityMode-UserChangeable: false
You can also [disable compatibility mode] within the device after the app is installed2.
- Navigate to the Applications list by clicking Options -> Advanced Options -> Applications.
- Locate and select the third-party application.
- Display the menu and click Disable Compatibility Mode.
if(VirtualKeyboard.isSupported())
getVirtualKeyboard().setVisibility(VirtualKeyboard.HIDE_FORCE); //Force to close the virtual Keyboard.
you will compile in 4.7 and use preprocesor directives to detect if Virtual Keyboard is supported, then force to close..
//#ifdef BlackBerrySDK4.7.0
if(VirtualKeyboard.isSupported())
getVirtualKeyboard().setVisibility(VirtualKeyboard.HIDE_FORCE);
//#endif
精彩评论