11-04-2011 05:31 AM
Hi all,
I am using following code to Mark Mails from inbox as Read(Opened)
for(int i =0;i<inbox.getMessages().length;i++){
String receivedDate = dateFormat.format(inbox.getMessages()[i].getReceiv
if(inbox.getMessages()[i].getFrom().getAddr().equ
inbox.getMessages()[i].setFlag(Message.Flag.OPENE
break;
}
}
This works well in simulator but doesnt work on actual device.
Any help is appreciated.
Thank You,
Shivdattam.
11-04-2011 05:34 AM
11-04-2011 06:21 AM
Hi Simon,
Thanks for your quick reply.But when i print lenght of Inbox using "inbox.getMessages[].length",though there are messages in Inbox length is given as Zero(0).
Thanks,
Shivdattam.
11-04-2011 08:04 AM
You might want to check aplication permissions.
11-04-2011 08:53 AM
hi Rex,
Thanks for reply but may i know how to set application permissions.Is is the same while installing application prompts up.I have already given permissions to that.If what u r saying is different then please let me know.
Thanks,
Shivdattam.
11-04-2011 09:04 AM