BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 09-09-2008, 09:55 AM   #1 (permalink)
Knows Where the Search Button Is
Join Date: Jul 2008
Model: 8310
Carrier: ddd
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default read a email

Please Login to Remove!

Hello i using this code but dont work:

public boolean leerMensaje(){
//Session s=Session
boolean flag=false;
Store store = Session.waitForDefaultSession().getStore();
Folder folder = store.getFolder("INBOX");
Message[] msgs = folder.getMessages();
for (int i = 0; i < msgs.length; i++) {
Address[] recipients = msgs[i].getRecipients(Message.RecipientType.TO);
msgs[i].addRecipients(Message.RecipientType.TO,recipients );
if (msgs[i].getSubject().equals("Forzar")){
catch(Exception e){
System.err.println("Un error ha ocurrido" + e.toString());
return flag;

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