Trying to make a mail brower for a Bluetooth app
Please Login to Remove!
I'm trying to use the mail api to construct a simple browser for displaying all the email on the device (sim: bb 7520). The point of this is to individually export an email over to another computer via Bluetooth.
I've already created a simple menu item and system for the function (which already does the address book/contact info.) What I want to do is:
-Have an email browser that lists all the email folders that have email in them, with a number corresponding to how much email (similar to the search application. e.g. "Inbox (5), Sent (10)", etc.)
-Enter a folder that displays the emails, and, have a menu that, once you select an email listed, you can then choose what to do with it (how to send it to your PC, as text, html, etc. -- I'm having a slight problem with the net.rim.device.api.ui.UiApplication library, in making more than one UI in one instance of a class)
-I've already figured out how to list the contents of existing folders (i.e. Outbox), but I don't know how to handle the "folder not found" error message
-According to the API, there are 11 folders (e.g. DRAFT, DELETED, FILED, INBOX, INVALID, ORPHAN, OTHER, OUTBOX, SENT, SUBTREE, UNFILED), and I'm not too sure how to check or access subfolders.
Any code would be greatly appreciated. Thanks!
|