02-03-2009 08:50 PM
Hello I have a program that sends SMS messages but it's on a Verizon CDMA device so I am forced to use Datagrams. I have a couple of questions.
I was wondering if there was an easy way to store my messages in my SMS box like a normal text message would after being sent?
Can I make my application push the SMS and MMS folder screen just like a normal SMS or MMS would after sending one?
Also the program doesn't have much in the way of error checking except for checking signal strength, is there a way I can add the messages to a que incase the application is closed or the signal is stopped?
02-04-2009 09:49 AM
I think the answer to my first and second question is that I have to make my own storage using PersistantStore but i'm still not sure because I know in the MemoAPIDemo on the JDE it can store memos with what looks like PIMList but there is no PIMList for SMS.
I am still curious though, is there anyway to check to make sure my Datagrams are sending? Will I get an IOInturruptedError if something should make the transmission fail?
This is all for the Storm, I don't think I mentioned that yet
02-04-2009 07:11 PM
From what i've been reading sending a SMS Datagram should automatically put it in the SMS Outbox but it doesn't, that's wierd.
Right now I have a SendingThread that extends thread, it makes a datagram with the message (SMS://234234234 no port because Verizon strips it out from what I heard) so do I need to make a ListeningThread in order for it to see my outgoing SMS messages and place them in my outbox or is this just not possible?
02-09-2009 02:14 PM
The BlackBerry API set does not provide direct access to read from or write from SMS folders. The SMS message should appear in the sent folders when sending an SMS message using a MessageConnection without specifying a port, however are not able to use this on CDMA BlackBerry handhelds (where a DatagramConnection should be used).
Your application could display the SMS message after it has been sent. There is no support for viewing such a message in the default Messages application.
09-29-2010 03:30 PM
Instead of opening a new topic , I though I'd use this one as my issue is identical to Rogu's.
I'm trying to send SMS message through Blackberry Simulator.
I'm using the example from: http://supportforums.blackberry.com/t5/Java-Develo
MessageConnection msgConn = (MessageConnection)Connector.open("sms://15195555555");
Message msg = msgConn.newMessage(MessageConnection.TEXT_MESSAGE)
TextMessage txtMsg = (TextMessage)msg;
The snippet runs without throwing any exceptions but for some reason, the SMS doesn't show up in the outgoing messages box. Am I doing something wrong or is this the expected behavior when sending SMS message on Simulator?