Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 52
Registered: ‎05-31-2012
My Device: Not Specified
My Carrier: Airtel
Accepted Solution

SMS and MMS logs

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

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: SMS and MMS logs

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.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 52
Registered: ‎05-31-2012
My Device: Not Specified
My Carrier: Airtel

Re: SMS and MMS logs

Hi, thanks to reply.

 

 

is it possible to get the log of email and also history of browser.

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: SMS and MMS logs

You cannot programmatically access browser history.  It is possible to listen for email activity (both incoming and outgoing messages).

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 52
Registered: ‎05-31-2012
My Device: Not Specified
My Carrier: Airtel

Re: SMS and MMS logs

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();
} 

 

Highlighted
BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: SMS and MMS logs

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

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker