Receive a message notification
- Import the required classes and interfaces.
import net.rim.blackberry.api.mail.event.FolderListener;
import net.rim.blackberry.api.mail.event.StoreListener;
import net.rim.device.api.system.ControlledAccessException;
- Implement the FolderListener and StoreListener interfaces.
public class MailTest implements FolderListener, StoreListener { ... }
- Check for a ControlledAccessException if your application accesses an object that you do not have permission to access.
Was this information helpful? Send us your comments.