BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-02-2008, 01:19 PM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2008
Model: 7100T
PIN: N/A
Carrier: idk
Posts: 84
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default reading mails

Please Login to Remove!

hi everyone
I'm trying to make a small application which will retrieves all mails in the inbox...
I tried to get the inbox folder and then get all messages in the folder but Folder.getMessages always returns null...
I also tried reading the subfolders but found nada...
any help?

Code:
//Retrieves the inbox folder
                Session session = Session.getDefaultInstance();
                Store store = session.getStore();
                Folder[] folders = store.list(Folder.INBOX);
                Folder inbox = folders[0];
                String subject;
                
                Message[] messages = inbox.getMessages();
                if(messages!=null && messages.length>0)
                {
                    do some things
                }
__________________
Stop telling me what it can do...
Show me how to make it do it!!!!
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

HSS 15PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP
$196.99
HSS 15PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP pictureHSS 12PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP
$163.99
HSS 12PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP pictureHSS 21PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC - VINTAGE CAR,BIKES, JEEP
$222.99
HSS 21PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC - VINTAGE CAR,BIKES, JEEP pictureVintage SIGNODE Crimping W14 Tool 17.5" long pat#1784123 dec9 1930 /N12167
$24.35
Vintage SIGNODE Crimping W14 Tool  17.5New in Box - Digital Dec RL01K-DC 5MB Data Cartridge - Vintage
$200.0
New in Box - Digital Dec RL01K-DC 5MB Data Cartridge - Vintage picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.