I am checking contents of the Message folders using this code:
PHP Code:
Store store = Session.getDefaultInstance().getStore();
Folder xxx91;xxx93; f = store.list();
if (f != null && f.length > 0) {
try {
for (int i=0;i<f.length;i++)
{
Folder _box = fxxx91;ixxx93;;
Message _msgBox xxx91;xxx93; = _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.