Help Center
Local Navigation
- Creating user interfaces
- Storing data
- Creating connections
- Managing applications
- Using custom messages and folders in the message list
- Creating a module for background processes
- Creating a module for the UI
- Create the module for background processes
- Start the module for background processes or the module for the UI
- Create an icon for a custom message
- Create a custom folder in the message list
- Send a notification when a custom folder changes
- Create an indicator for the number of messages in a custom folder
- Hide an indicator for a custom folder
- Remove an indicator for a custom folder
- Applications for push content
- Localizing BlackBerry device applications
- Controlling access to APIs and application data
- Testing a BlackBerry device application
- Packaging and distributing a BlackBerry Java Application
- Glossary
- Provide feedback
- Legal notice
BlackBerry Manuals & Help
>
Documentation for Developers
>
Java Development Guides and API Reference
>
Development Guide - BlackBerry Java Development Environment - 4.7.0
Send a notification when a custom folder changes
- Import the net.rim.blackberry.api.messagelist.ApplicationMessageFolder class.
- To notify a BlackBerry® device application
when a message is added to a custom folder, invoke ApplicationMessageFolder.fireElementAdded().
inboxFolder.fireElementAdded( newMessage );
- To notify a BlackBerry device application
when a message is removed from a custom folder, invoke ApplicationMessageFolder.fireElementRemoved().
inboxFolder.fireElementRemoved( deletedMessage );
- To notify a BlackBerry device application
when a message in a custom folder is updated, invoke ApplicationMessageFolder.fireElementUpdated().
inboxFolder.fireElementUpdated( updatedMessage );
- To notify a BlackBerry device application
when more than one message in a custom folder changes, invoke ApplicationMessageFolder.fireReset().
inboxFolder.fireReset();
Parent topic: Using custom messages and folders in the message list