background image

Accelerometer

The BlackBerry® Storm device includes an acclerometer that senses the orientation and acceleration of the device. When a
BlackBerry device user moves the device, the accelerometer senses the movement in 3-D space along the x, y, and z axis. A
BlackBerry device user can change the orientation of the device which can change the display direction of a screen for a BlackBerry
device application between portrait and landscape.

The Accelerometer APIs in the 

net.rim.device.api.system

 package let a BlackBerry device application respond to

the orientation and acceleration of a BlackBerry device. For example, you can manipulate a game application to change the
direction and speed of a moving object on the screen as a BlackBerry device user moves and rotates the BlackBerry device at
different speeds.

Screen display direction

When the orientation of the BlackBerry® Storm device changes, the display direction of the screen of a BlackBerry device
application can also change. The display direction refers to the top of the drawing area of the screen relative to the location of
the BlackBerry logo on the BlackBerry device. The display direction of an application screen can be north, south, east, west,
landscape, or portrait.

The BlackBerry® UI APIs now let a BlackBerry device application retrieve the display direction of the screen and prevent a
BlackBerry device from changing the display direction of the screen.

A BlackBerry device application can use the 

net.rim.device.api.system.Display.getOrientation()

method to retrieve the display direction of the screen. A BlackBerry device application can use
the

 net.rim.device.api.ui.UiEngineInstance

 

.setAcceptableDirections(int)

 method to

set the screen to only display in certain directions when a BlackBerry device user changes the orientation of the BlackBerry Storm
device. For example, an application that displays a document could set the screen to always display in landscape mode.

Home screen background image

The BlackBerry® UI APIs now let a BlackBerry device application set the image that appears as the background of the Home
screen on a BlackBerry device.

A BlackBerry device application can use 

net.rim.blackberry.api.homescreen.HomeScreen.

setBackgroundImage(String uri)

 with an image file that resides in flash memory or a microSD Card to set the

background image. A typical format for the URI is "file:///store/home/user/pictures/file.jpg." Invoking

net.rim.blackberry.api.homescreen.HomeScreen.

 

setBackgroundImage(String uri)

 will

override images that other applications have set.

Feature and Technical Overview

Screen and UI

6

Содержание JAVA DEVELOPMENT ENVIRONMENT - - FEATURE AND TECHNICAL

Страница 1: ...BlackBerry Java Development Environment Version 4 7 0 Feature and Technical Overview...

Страница 2: ...SWD 552026 1212113555 001...

Страница 3: ...ut 5 Touch screen keyboard 5 Accelerometer 6 Screen display direction 6 Home screen background image 6 Multimedia 7 Image and video handling 7 Video recorder integration 7 Digital rights management 7...

Страница 4: ...ble UI and interaction with a trackwheel or touch screen You can also create an application that interacts with the components of the BlackBerry solution including the BlackBerry Enterprise Server pus...

Страница 5: ...eatures of a BlackBerry device such as GPS and location based services video playback and the trackball multilanguage support You can create a BlackBerry device application that can automatically disp...

Страница 6: ...stomers are connected to communication and corporate data by actively sending them data security You can create a BlackBerry device application that uses security features such as AES or Triple DES en...

Страница 7: ...screen AtoucheventcorrespondstoanactionaBlackBerryuserperformsonthetouchscreensuchasaclick Atouchgesturecorresponds to a combination of touch events that a BlackBerry user generates when they touch t...

Страница 8: ...est landscape or portrait The BlackBerry UI APIs now let a BlackBerry device application retrieve the display direction of the screen and prevent a BlackBerry device from changing the display directio...

Страница 9: ...items to send an image file or video file to the BlackBerry device application Video recorder integration The BlackBerry APIs now let a BlackBerry device application start the video recorder applicat...

Страница 10: ...ment visit www blackberry com developers For documentation for developers visit www na blackberry com eng support docs For more information about APIs see the API Reference for the BlackBerry Java Dev...

Страница 11: ...ater available minimum 500 MB of disk space available operating system Any of the following operating systems Microsoft Windows Vista Microsoft Windows XP Professional Java development kit Java SE Dev...

Страница 12: ...evice Configuration HTTP Hypertext Transfer Protocol HTTPS Hypertext Transfer Protocol over Secure Sockets Layer MIDP Mobile Information Device Profile Triple DES Triple Data Encryption Standard XML E...

Страница 13: ...Provide feedback 7 To provide feedback on this deliverable visit www blackberry com docsfeedback Feature and Technical Overview Provide feedback 11...

Страница 14: ...uch changes updates enhancements or other additions to this documentation to you in a timely manner or at all This documentation might contain references to third party sources of information hardware...

Страница 15: ...IRTIME SERVICE PROVIDERS AND THEIR RESPECTIVE DIRECTORS EMPLOYEES AND INDEPENDENT CONTRACTORS IN ADDITION TO THE LIMITATIONS AND EXCLUSIONS SET OUT ABOVE IN NO EVENT SHALL ANY DIRECTOR EMPLOYEE AGENT...

Страница 16: ...RSEDEANYEXPRESSWRITTENAGREEMENTSORWARRANTIES PROVIDED BY RIM FOR PORTIONS OF ANY RIM PRODUCT OR SERVICE OTHER THAN THIS DOCUMENTATION Research In Motion Limited 295 Phillip Street Waterloo ON N2L 3W8...

Отзывы: