hi,
I couldn't wait try on another computer where i have jdk142_03. it works there.
It works when I try to just send SMS to another emulator's instance via port 3334 but when I try to send SMS to real phone number it doesn't work.
I don't get exception on conn.send(). Below is the code where I have put SOPs myself...
I get following output,
In SEND1
Sending the message
java.io.IOException
at com.sun.cldc.io.j2me.datagram.Protocol.receive(+77)
at com.sun.midp.io.j2me.sms.DatagramImpl$DatagramReader.run(+32)
Message sent
I am wondering if I am writing the phone number correctly. e.g.
if I have phone no: (123) 456-7890 then in the text file I should write 11234567890, right? (First '1' is for country code).
The code already prepends '+' sign in
sms://+ so I am not writing that in text field.
Any idea?
I would try this on the real phone once I can upload this
test to a webserver and download it on the phone to see if that makes any difference..
Regards,
Maulin