Download Mobile Application Development for BlackBerry Devices
Transcript
Table of Contents Introduction....................................................................................................................... 4 Tutorial 1: Java ME.......................................................................................................... 5 Mobile Platforms ............................................................................................................ 5 Java ME .......................................................................................................................... 7 Development Tools (Java ME WTK) ............................................................................. 9 Midlets .......................................................................................................................... 10 Tutorial 2: Java ME for the BlackBerry ...................................................................... 12 The BlackBerry Architecture........................................................................................ 13 BlackBerry Application Models ................................................................................... 14 BlackBerry Extensions to Java ME .............................................................................. 15 RIM's Java Development Environment ........................................................................ 15 Running Existing MIDlets on the BlackBerry.............................................................. 17 Tutorial 3: Programming with BlackBerry API.......................................................... 18 BlackBerry JDE ............................................................................................................ 19 BlackBerry API............................................................................................................. 20 HelloWorld Example with BlackBerry API ................................................................. 20 Simulator....................................................................................................................... 22 Tutorial 4: Blackberry UI Components........................................................................ 23 BasicEditField............................................................................................................... 25 Dialog Popup Window.................................................................................................. 25 Screens .......................................................................................................................... 26 Layout Managers .......................................................................................................... 27 BitmapField................................................................................................................... 29 RadioButtonField.......................................................................................................... 29 GaugeField.................................................................................................................... 30 Custom LabelField........................................................................................................ 30 Tutorial 5: BlackBerry Menus....................................................................................... 32 Creating a Custom Menu .............................................................................................. 33 Creating a Context Menu .............................................................................................. 35 Tutorial 6: BlackBerry Events....................................................................................... 38 Focus Change Listener.................................................................................................. 39 Key Listener.................................................................................................................. 40 Touch Screen Events..................................................................................................... 43 Tutorial 7: Graphics and Sounds .................................................................................. 45 Graphics ........................................................................................................................ 45 Sounds........................................................................................................................... 48 Tutorial 8: Networking................................................................................................... 52 USB/Serial .................................................................................................................... 52 Bluetooth....................................................................................................................... 55 Radios ........................................................................................................................... 56 Wi-Fi ............................................................................................................................. 57 HTTP............................................................................................................................. 60 Tutorial 9: Managing Data ............................................................................................ 62 Persistent Data .............................................................................................................. 62 Programming for the BlackBerry 2