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: 78
Registered: ‎12-03-2009
My Device: Not Specified

How to save a sent SMS at Output Folder?

[ Edited ]

Greetings!

 

Our application is sending SMS according to the bellow code, but the sent SMS is not been saved at the output folder. I need to save it there. How can I do it?

 

 

_dc = (DatagramConnection)Connector.open("sms://");
	for(;;)	{
		Datagram d = _dc.newDatagram(_dc.getMaximumLength());
		_dc.receive(d);
		byte[] bytes = d.getData();
		String address = d.getAddress();
		String msg = new String(bytes);
		...
		String answer = _response.getText();
		answer.getBytes();
		

Datagram returnpacket = _dc.newDatagram(_dc.getMaximumLength());
		returnpacket.setAddress(d.getAddress());
		returnpacket.setData(answer.getBytes(), 0, answer.length());
		_dc.send(returnpacket);
}

 

Thanks in advance!

 

--
Feel free to press the kudos button on the left side to thank the user that helped you.
Please mark posts as solved if you found a solution.
Highlighted
Developer
Posts: 78
Registered: ‎12-03-2009
My Device: Not Specified

Re: How to save a sent SMS at Output Folder?

Tried out both approaches presented on the following article: http://supportforums.blackberry.com/t5/Java-Development/Different-ways-to-send-SMS-messages/ta-p/445...

 

Nevertheless none of them register any sent message in the SMS outbox folder. Is there any work around to register those sent messages?

 

Thanks in advance!

--
Feel free to press the kudos button on the left side to thank the user that helped you.
Please mark posts as solved if you found a solution.
Developer
Posts: 78
Registered: ‎12-03-2009
My Device: Not Specified

Re: How to save a sent SMS at Output Folder?

Does anybody knows any thing about writing over outbox folder?

thanks

--
Feel free to press the kudos button on the left side to thank the user that helped you.
Please mark posts as solved if you found a solution.
Trusted Contributor
Posts: 177
Registered: ‎03-02-2010
My Device: Not Specified

Re: How to save a sent SMS at Output Folder?

Hi Klerisson,

Have seen following url it might be help you.

http://myhowto.org/java/j2me/22-sending-and-receiving-gsm-sms-on-blackberry-using-rim-apis/

 

Regards,

Rishabh Jain

Developer
Posts: 78
Registered: ‎12-03-2009
My Device: Not Specified

Re: How to save a sent SMS at Output Folder?

Thanks man, but my main concern is not to send a SMS, but I need to register any sent SMS through my application over the outbox folder. I suspect that we can not write anything there due security restrictions.

 

 

--
Feel free to press the kudos button on the left side to thank the user that helped you.
Please mark posts as solved if you found a solution.
Developer
Posts: 203
Registered: ‎07-30-2009
My Device: Bold(9780),Curve(8520)
My Carrier: Vodafone

Re: How to save a sent SMS at Output Folder?

Hi,

 

as I know because of security reason  we can nor edit the SMS in sentfoldr.

 

Thanks

Tita

Regular Contributor
Posts: 82
Registered: ‎10-28-2010
My Device: Not Specified

Re: How to save a sent SMS at Output Folder?

this has been raised with blackberry - https://www.blackberry.com/jira/browse/JAVAAPI-403