BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
koic Offline
Thumbs Must Hurt
 
Posts: 62
Join Date: Feb 2009
Location: CANADA
Model: 9000
PIN: N/A
Carrier: Rogers
Question Empty Folders or Where are these (SMS) Messages? - 07-03-2009, 02:09 PM

I am checking contents of the Message folders using this code:
PHP Code:
Store store Session.getDefaultInstance().getStore();
Folder [] store.list();
if (
!= null && f.length 0) {
    try {
        for (
int i=0;i<f.length;i++)
        {
            
Folder _box f[i];
            
Message _msgBox [] = _box.getMessages();
            
System.out.println("CHECK FOLDER("+i+"): "+_msgBox.length);
        }
    } catch (
MessagingException ex) {
        
ex.printStackTrace();
    } catch(
IllegalStateException ex){
        
System.out.println(ex.getMessage());
    }

I am running Bold simulator and code is not signed.
I know that I have some received and sent (SMS) Messages, but
the output is 12 (0..11) empty folders.
However the result seems to be correct, because when I checked folders on the simulator (View Folders) all of them were empty(!)
So where are these messages which I see on the screen?
I even tried to successfully save them, although I don't know where exactly I saved them.
Attached Images
File Type: jpg sms.jpg (17.3 KB, 3 views)
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
koic Offline
Thumbs Must Hurt
 
Posts: 62
Join Date: Feb 2009
Location: CANADA
Model: 9000
PIN: N/A
Carrier: Rogers
Default 07-03-2009, 06:05 PM

OK, I kept on readin' this forum and found that programmatically I cannot read SMS from in or out-boxes
That's already been discussed...

Last edited by koic : 07-03-2009 at 06:07 PM.
   
Reply With Quote
Reply


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





Copyright © 2004-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.