I´m working on a multiplatform (Sony Ericsson, Nokia etc.) project right now and I face serious problems when it comes to the Nokia cellphones. I can´t really understand why these simpel things don´t work on them.
Alright. The program I´m developing on should be able to send SMS and receive SMS. My functions worked fine on Sony Ericsson phones. I was able to send and receive (-> I mean: A listener on the port waits for an SMS) with no serious problems.
My Nokia phones just seam to have a problems with generating the sms listening and sending object. Have a look at my simpel code:
Personaly I think that the problem lies in the smsConn = (MessageConnection)Connector.open(...) statement, but all examples I find about sending sms show me very similar examples and well it works fine on my SE phones =/
if (Port > 0)
smsConn = (MessageConnection)Connector.open("sms://" + Number + ":" + Port);
smsConn = (MessageConnection)Connector.open("sms://" + Number);
TextMessage txt = (TextMessage)smsConn.newMessage(MessageConnection.TEXT_MESSAGE);
catch (Exception ex)
I use the port 16001, but I already tried it with other/no ports.
Nex: My port listener
Well same problems here.
smsConn = (MessageConnection)Connector.open("sms://:" + String.valueOf(smsPort));
I do have/use a certifacte for my program.
Somebody told me that I need the Wireless Messaging API on my phones for using this function. Alright. How do I find out if my phone has this API? A search through the documentation brought me no step forward. Is the WMA already standard? So I don´t have to look for my S60 phones?
btw.: Could you tell me a good debuging method for Nokia phones? The ones that I use don´t really work on Nokia systems -.-'
Help is REALLY welcomed because sending SMS is a core task of our program. Receiving incoming sms with a port isn´t that important though.