07-10-2012 01:32 AM
Hi ,
I want to show all sent and recieved sms and mms with date and time in my application but i could not find thease details.
Please help me
Solved! Go to Solution.
07-12-2012 03:36 PM
There are no APIs that expose that information. You application could listen for incoming SMS messages and build its own database containing this information. It wouldn't be possible for MMS though. You can only capture MMS messages sent to your application.
07-19-2012 03:03 AM
Hi, thanks to reply.
is it possible to get the log of email and also history of browser.
07-19-2012 09:57 AM
You cannot programmatically access browser history. It is possible to listen for email activity (both incoming and outgoing messages).
07-20-2012 02:41 AM
Hi, i am using following code to get email, but it is cretaing problem in curve 8520. can you give me another code
Store store = Session.getDefaultInstance().getStore();
Folder[] folders = store.list(Folder.INBOX);
Folder inboxFolder = folders[0];
Message[] messages =null;
Vector receiveEmailAddrV = new Vector();
try{
for(int i=0;i<inboxFolder.getMessages().length;i++){
receiveEmailAddrV.addElement( "From : " + inboxFolder.getMessages()[i].getFrom().getAddr() + " : " + inboxFolder.getMessages()[i].getBodyText() + " : At "+ inboxFolder.getMessages()[i].getReceivedDate());
}
}
catch(MessagingException e1) {
e1.printStackTrace();
}
07-20-2012 02:33 PM
Is the problem that it is not picking up all messages? That is because you are only looking in one message store. Refer to this link for more information and sample code.
Application is not notified when new messages arrive