Contents
1 Creating user interfaces............................................................................................................................................................. 7
Screens.............................................................................................................................................................................................7Screen classes.........................................................................................................................................................................7Create a screen.......................................................................................................................................................................8How the BlackBerry JVM manages screens........................................................................................................................8Provide screen navigation when using a MainScreen.......................................................................................................8Manage a drawing area.........................................................................................................................................................8 Touch screen orientation and direction.......................................................................................................................................10Retrieve the orientation of the touch screen......................................................................................................................10Restrict the touch screen direction......................................................................................................................................10Receive notification when a drawable area of the touch screen changes......................................................................11Receive notification when the orientation of the touch screen changes........................................................................11 Working with the accelerometer of a BlackBerry device............................................................................................................11 Types of accelerometer data.................................................................................................................................................12Accelerometer.........................................................................................................................................................................12Retrieve accelerometer data at specific intervals...............................................................................................................12Query the accelerometer when the application is in the foreground..............................................................................13Query the accelerometer when the application is in the background.............................................................................13Store accelerometer readings in a buffer............................................................................................................................14Retrieve accelerometer readings from a buffer..................................................................................................................14Get the time a reading was taken from the accelerometer..............................................................................................15UI components................................................................................................................................................................................15Add a UI component to a screen..........................................................................................................................................15Create a dialog box................................................................................................................................................................15Creat a bitmap........................................................................................................................................................................16Create a button.......................................................................................................................................................................16Create a list.............................................................................................................................................................................16Create an alphanumeric drop-down list..............................................................................................................................16Create a text list that can be filtered...................................................................................................................................16Create a check box.................................................................................................................................................................18Create a radio button.............................................................................................................................................................18Create a date field..................................................................................................................................................................19Create a text field...................................................................................................................................................................19
Leave a Comment
device management