Troubleshooting guide
Use the BlackBerry Maps application ................................................................................................ 201
Locating BlackBerry devices using GPS information .............................................................................. 201
Methods for retrieving a GPS location............................................................................................... 201
Selecting a GPS location provider ......................................................................................................202
Retrieve BlackBerry device GPS location information.....................................................................204
Requirements for retrieving GPS location information from BlackBerry devices that run on the
CDMA network.......................................................................................................................................205
Send required PDE data to BlackBerry devices that run on the CDMA network ....................... 206
Code sample: Recording GPS information for a BlackBerry device ............................................. 206
15 Creating push applications............................................................................................................................. 215
Types of push applications ...........................................................................................................................215
Types of push requests................................................................................................................................. 216
Write a client push application ....................................................................................................................217
Code sample: Listening for data from a web server..........................................................................218
Write a server-side push application .........................................................................................................222
Work with a server-side push request ................................................................................................224
Create a RIM push request..........................................................................................................................225
Create a PAP push request..........................................................................................................................226
Code sample: Pushing data to an application that listens on a BlackBerry device............................ 227
16 Localizing applications ....................................................................................................................................235
Storing text strings in resource files ..........................................................................................................235
Storing resources for a locale .....................................................................................................................235
Files required for localization......................................................................................................................236
Add localization support..............................................................................................................................236
Code sample: Storing text strings in separate resources for locales.................................................... 237
Retrieve strings from a resource file..........................................................................................................240
Code sample: Retrieving strings from a resource file .............................................................................240
Manage resource files for application suites............................................................................................243
17 Testing applications........................................................................................................................................ 245
Testing applications using the BlackBerry IDE ........................................................................................245
Use the BlackBerry device simulator to test synchronizing data with the BlackBerry Desktop
Software..................................................................................................................................................245
Testing applications using BlackBerry devices ....................................................................................... 246
Connect the BlackBerry IDE to a BlackBerry device....................................................................... 246