New In This Release; Screen And Ui; Touch Screen User Input; Touch Screen Keyboard - Blackberry JAVA DEVELOPMENT ENVIRONMENT - - FEATURE AND TECHNICAL Overview

Table of Contents

Advertisement

Feature and Technical Overview

New in this release

Screen and UI

Enhancements to the BlackBerry® Screen and UI APIs let you create a BlackBerry device application that works with the new UI
features of the BlackBerry® Storm smartphone. These features include a clickable touch screen, a touch screen keyboard, an
accelerometer for sensing the orientation and acceleration of the BlackBerry device, and the ability to allow or prevent the
BlackBerry device from changing the display direction of the screen.

Touch screen user input

The BlackBerry® UI APIs now let a BlackBerry device application receive events when a BlackBerry device user touches the screen
of the BlackBerry® Storm smartphone.
A BlackBerry device application can use the net.rim.device.api.ui.TouchEvent class and the
net.rim.device.api.ui.TouchGesture class to receive and respond when a BlackBerry device user performs an
action, like a tap, click, or swipe, on the device screen.
A touch event corresponds to an action a BlackBerry user performs on the touch screen such as a click. A touch gesture corresponds
to a combination of touch events that a BlackBerry user generates when they touch the touch screen such as a slide across the
screen.
A MIDlet can extend the net.rim.device.api.lcdui.BlackBerryCanvas class, the
net.rim.device.api.lcdui.game.BlackBerryGameCanvas class, the
net.rim.device.api.lcdui.BlackBerryCustomItem class, or the pointer methods in the
javax.microedition.lcdui.Canvas class to receive and respond when a BlackBerry device user performs an action
on the device screen.

Touch screen keyboard

The BlackBerry® UI APIs now let a BlackBerry device application interact with the touch screen keyboard.
A BlackBerry device application can use the net.rim.device.api.ui.Screen. getVirtualKeyboard()
method to access the touch screen keyboard for the current application screen.
A BlackBerry device application can use the setVisibility(int) method of the
net.rim.device.api.ui .VirtualKeyboard class to display or hide the touch screen keyboard.
New in this release
3
5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Java development environment 4.7.0

Table of Contents