BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-02-2008, 03:17 PM   #1 (permalink)
New Member
 
Join Date: Dec 2008
Model: 8700
PIN: N/A
Carrier: AT&T
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Storing SMS in folder

Please Login to Remove!

Hey everyone,

I am trying to figure out how to store the SMS I sent via my application. The Folder class gives me access to the e-mail folders, but not SMS or MMS. If anyone has been able to do this, please let me know.

I am also faced with another issue that the SMS I send via my application is received as garbage text.

Following is the code I am using to test the SMS application. The result I get on the target phone is garbage, which is of the same string length as that of the original message.

Code:
MessageConnection mc = null;
try {
	mc = (MessageConnection) Connector.open("sms://" + phonenumber);

	TextMessage message = (TextMessage) mc.newMessage(MessageConnection.TEXT_MESSAGE);

	message.setPayloadText("Hello! Testing testing...");
				        
        mc.send(message);
						
	mc.close();
} catch (InterruptedIOException e) {
	e.printStackTrace();
} catch (IOException e) {
	e.printStackTrace();
}
Any help is appreciated. Thanks!

Last edited by Jebadiah : 12-02-2008 at 03:20 PM.
Offline  
Closed Thread


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

1FK7063-2AH71-1CH0 Siemens servo motor 1FK70632AH711CH0 NIB
$1999.95
1FK7063-2AH71-1CH0  Siemens servo motor 1FK70632AH711CH0 NIB picture Siemens 6EP1935-6MD11 NIB
$399.95
 Siemens 6EP1935-6MD11 NIB picture1FK7034-2AK71-1CA0 Siemens servo motor for SINAMICS 1FK7034-2AK71-1CA0 NIB
$1699.95
1FK7034-2AK71-1CA0  Siemens servo motor for SINAMICS 1FK7034-2AK71-1CA0 NIB picture 6SN1115-0BA11-0AA1 Siemens SIMODRIVE Hydraulic 6SN1 115-0BA11-0AA1 good
$2598.95
 6SN1115-0BA11-0AA1  Siemens SIMODRIVE Hydraulic 6SN1 115-0BA11-0AA1  good pictureSIEMENS module 6ES7 148-4FS00-0AB0 NIB
$399.95
SIEMENS module 6ES7 148-4FS00-0AB0  NIB picture






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