Working with the BlackBerry Storm BLACKBERRY

In most of the work we’ve done so far, I’ve mentioned the trackball many times, as most BlackBerry devices are trackball (or trackpad) devices after all. But what about the BlackBerry Storm with its touch screen? The good news is that, if you construct your components the way we’ve done here, everything will work as you’d expect on the Storm. The BlackBerry operating system maps touch events to appropriate focus or navigation click events on your screens and fields, so as long as you’re working at the level of those methods, you don’t have to do any extra work to be compatible with the touch screen input method.

You will, as discussed earlier, have to compile your code with JDE 4.7 or later to avoid compatibility mode, but the code itself won’t have to change. The other new feature of the Storm is that you can use it in vertical and horizontal orientation. The good news is that, since we’ve used relative positioning everywhere, our application will look good automatically on the Storm in both vertical and horizontal orientation .

UiFun running on the BlackBerry Storm simulator in vertical orientation

UiFun running on the BlackBerry Storm simulator in vertical orientation

UiFun running on the BlackBerry Storm simulator in a horizontal orientation

UiFun running on the BlackBerry Storm simulator in a horizontal orientation

When the device is rotated, your sublayout and layout methods will automatically be called, and you’ll have a chance to adjust your screen layout to the new width and height.The virtual keyboard will also automatically be displayed whenever the focus is on a text edit field.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

BLACKBERRY Topics