BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
s.selva Offline
New Member
 
s.selva's Avatar
 
Posts: 8
Join Date: Apr 2009
Model: 8300
PIN: N/A
Carrier: Orange
Question How to save a TextMessage in sent folder - 09-10-2009, 05:34 AM

I have to save a SMS after sending it. I only see that i can save a Message as an email, and not as a SMS. How can I do this ?

Code:
Store store = Session.getDefaultInstance().getStore();
Folder[] folders = store.list(Folder.SENT);
Folder tofolder = folders[0];

Address toList[] = new Address[1];
toList[0] = new Address(number,contact);

Message tm = new Message(tofolder);
tm.addRecipients(Message.RecipientType.TO, toList);
tm.setContent(getSMSText());
                     
tofolder.appendMessage((Message)tm);


Enseigne l'ignorant et écoute le savant: Tu apprendras ce que tu ignorais, Et tu te rappelleras ce que tu savais...
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright © 2004-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.