Retrieve the total count of unread email messages in all folders in the store

  1. Import the required class.
    import net.rim.blackberry.api.mail.Store;
    
  2. Invoke Store.getUnreadMessageCount().
    int numUnread = store.getUnreadMessageCount();
Next topic: Open a message

Was this information helpful? Send us your comments.