Package net.rim.blackberry.api.messagelist

Examples of net.rim.blackberry.api.messagelist.ApplicationMessageFolder.addListener()


    ReadableListImpl inboxMessages = messages.getInboxMessages();
   
    ApplicationMessageFolder inbox = reg.registerFolder(CustomMessage.INBOX_FOLDER_ID, _folderName, inboxMessages);

    // Register as a listener for callback notifications
    inbox.addListener(this, ApplicationMessageFolderListener.MESSAGE_DELETED | ApplicationMessageFolderListener.MESSAGE_MARKED_OPENED
      | ApplicationMessageFolderListener.MESSAGE_MARKED_UNOPENED, appDescr);     

    // We've registered two folders, specify root folder name for the [View Folder] screen.
    reg.setRootFolderName(_folderName);     
View Full Code Here


                ApplicationMessageFolderListener.MESSAGE_DELETED
                        | ApplicationMessageFolderListener.MESSAGE_MARKED_OPENED
                        | ApplicationMessageFolderListener.MESSAGE_MARKED_UNOPENED
                        | ApplicationMessageFolderListener.MESSAGES_MARKED_OLD,
                daemonDescr);
        deleted.addListener(this,
                ApplicationMessageFolderListener.MESSAGE_DELETED, daemonDescr);

        messages.setFolders(inbox, deleted);

        // We've registered two folders, specify root folder name for the
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.