Contents
1
Adding custom menu items to applications .................................................................................................... 8
Adding menu items to BlackBerry Java Applications .................................................................................. 8
Create a menu item................................................................................................................................... 8
Register a menu item ................................................................................................................................ 9
2
Integrating with BlackBerry applications ....................................................................................................... 11
Invoke BlackBerry applications ......................................................................................................................11
3
Using the message list .......................................................................................................................................13
Create new messages...................................................................................................................................... 13
Work with a message.......................................................................................................................................15
Open a message .......................................................................................................................................16
Retrieve the body of a message without an attachment.................................................................... 17
Retrieve the body of a message with an attachment.......................................................................... 17
Code sample: Retrieve the body of a message ....................................................................................18
Notify an application that an email message is about to be sent.................................................... 20
Notify an application that an MMS message is about to be sent .................................................... 20
Notify an application that an SMS message is about to be sent ..................................................... 20
Send a message ........................................................................................................................................ 21
Reply to a message.................................................................................................................................. 22
Forward a message.................................................................................................................................. 23
Work with folders ............................................................................................................................................ 23
Working with attachments ............................................................................................................................ 25
Create an attachment handler .............................................................................................................. 25
Retrieve attachments.............................................................................................................................. 25
Send a message with an attachment ...................................................................................................26
4
Using PIM applications ..................................................................................................................................... 27
Using the calendar ......................................................................................................................................... 27
Start the calendar from your BlackBerry Java Application ............................................................... 27
Use the calendar...................................................................................................................................... 28
Notify an application when a list of events changes .......................................................................... 31
Notify an application when the default list of events on a BlackBerry device changes ...............31
Summary of Contents for JAVA DEVELOPMENT ENVIRONMENT - - DEVICE APPLICATIONS INTEGRATION - DEVELOPMENT GUIDE
Page 4: ......
Page 7: ......
Page 10: ...10 BlackBerry Device Applications Integration Guide...
Page 12: ...12 BlackBerry Device Applications Integration Guide...
Page 50: ...50 BlackBerry Device Applications Integration Guide...
Page 56: ...56 BlackBerry Device Applications Integration Guide...
Page 65: ......
Page 66: ...2008 Research In Motion Limited Published in Canada...