Blackberry JAVA DEVELOPMENT ENVIRONMENT - - RELEASE NOTES Yayın Notu - Sayfa 5

Yazılım Blackberry JAVA DEVELOPMENT ENVIRONMENT - - RELEASE NOTES için çevrimiçi göz atın veya pdf Yayın Notu indirin. Blackberry JAVA DEVELOPMENT ENVIRONMENT - - RELEASE NOTES 8 sayfaları. Version 4.7.0

5 of 8
to respond to touch
and touch gestures when the application starts.
events and
In the .jad file for a BlackBerry device application, set the the RIM-
gestures on the
TouchCompatibilityMode property to 'false'.
BlackBerry Storm
device.
Allow a user to set
You can allow a BlackBerry® device user to manually set a BlackBerry device application
the run mode for a
to run in compatibility mode. The BlackBerry device user sets the mode through the
BlackBerry device
Options screen on the BlackBerry device.
application on the
In the .jad file for a BlackBerry device application, set the the RIM-
BlackBerry Storm
TouchCompatibilityMode-UserChangeable property to ''true'.
device.
Allow a BlackBerry
A BlackBerry® device application can use the net.rim.device.api.ui.TouchEvent
device application
class, the net.rim.device.api.ui.TouchGesture class, or both to support and
to respond to touch
respond to touch screen input events such as taps, swipes, and gestures from a
screen input.
BlackBerry device user.
Allow a MIDlet to
A MIDlet can override the Canvas.pointerPressed(),
respond to touch
Canvas.pointerReleased(), and Canvas.pointerDragged() methods to respond
screen input.
to touch screen input events.
A MIDlet can also override the public void touchEvent(TouchEvent message)
method in any of the BlackBerry® specific MIDP classes: BlackBerryCanvas,
BlackBerryGameCanvas and BlackBerryCustomItem,to respond to touch screen
input events.
Use the touch
A BlackBerry® device application can use the
net.rim.device.api.ui.container.MainScreen.getVirtualKeyboard()
screen keyboard.
method with the methods of the net.rim.device.api.ui.VirtualKeyboard class to
display or hide the touch screen keyboard.
Use the touch screen keyboard APIs to allow a BlackBerry device application to make the
touch screen keyboard available to BlackBerry device users when they wish to provide
keyboard input.
Work with screen
A BlackBerry® device application can use the
orientation.
net.rim.device.api.ui.Display.getOrientation() method to retrieve the
orientation of the screen. A BlackBerry device application can also use the
net.rim.device.api.ui.UiEngineInstance.setAcceptableDirections(byte
flags) method to set the screen direction that the application supports.
Respond to the
A BlackBerry® device application can use the
orientation of the
net.rim.device.api.system.AccelerometerSensor class to retrieve information
BlackBerry device.
from the accelerometer of a BlackBerry device. Use the AccelerometerSensor class to
allow a BlackBerry device application to respond to changes in the orientation of the
BlackBerry device.
Setting the
A BlackBerry® application can invoke net.rim.blackberry.api.homescreen
background image
HomeScreen.setBackgroundImage(String uri) to set the background image of
of the Home
the Home screen on a BlackBerry smartphone. The image file must be located in the flash
screen.
memory of the BlackBerry smartphone or the microSD card. For example, uri =
"file:///store/home/user/pictures/file.jpg".
Sending and
A BlackBerry® application can now register to handle images that a BlackBerry
handling a camera
smartphone user sends from the camera application. After registration, when a BlackBerry
image.
Smartphone user takes a picture, a menu item appears in the menu of the camera
application that allows a user to send an image to the BlackBerry application.
Invoking the video
A BlackBerry® application can invoke net.rim.blackberry.api.invoke.
Invoke.invokeApplication(Invoke.APP_TYPE_CAMERA,new
©
2008 Research In Motion Limited. All rights reserved.www.blackberry.com