Troubleshooting guide

Working with attachments ..........................................................................................................................160
Create an attachment handler ............................................................................................................ 160
Retrieve attachments............................................................................................................................ 160
Send a message with an attachment .................................................................................................. 161
11 Using PIM applications ................................................................................................................................... 163
Using the calendar ....................................................................................................................................... 163
Start the calendar from your application........................................................................................... 163
Use the calendar.................................................................................................................................... 164
Code sample: Creating new recurring appointments...................................................................... 167
Using the address book ................................................................................................................................170
Open the address book from your application ..................................................................................170
Use contacts............................................................................................................................................170
Code sample: Displaying a screen that lets BlackBerry device users add new contacts............175
Using tasks......................................................................................................................................................178
Start the task application from your application...............................................................................178
Use tasks................................................................................................................................................. 179
Code sample:...........................................................................................................................................182
12 Using the phone application .......................................................................................................................... 185
Start the phone application from your application ................................................................................. 185
Use phone call functionality ....................................................................................................................... 185
Add DTMF tones to the send queue ................................................................................................... 186
Listen for phone events.................................................................................................................................187
Access and use call logs................................................................................................................................187
Code sample: Calculating the time that a participant spends on the phone .............................. 188
13 Using the BlackBerry Browser ........................................................................................................................191
Display content in the BlackBerry Browser ............................................................................................... 191
Display content in a BlackBerry Browser field ......................................................................................... 192
Code sample: Using the BlackBerry Browser ........................................................................................... 194
14 Using location information.............................................................................................................................199
Types of location information .....................................................................................................................199
Using BlackBerry Maps................................................................................................................................199
Location documents ..............................................................................................................................199
Create a location document to display map data............................................................................ 200