Hello all,
I'm having some trouble sending an MMS from a Java midlet on an A1200. SMS works fine:
But when I try to use MMS like this:Code:String addr = "sms://+" + phone + ":2000"; MessageConnection conn = (MessageConnection) Connector.open(addr); TextMessage msg = (TextMessage) conn.newMessage(MessageConnection.TEXT_MESSAGE); msg.setPayloadText(message); conn.send(msg); conn.close();
I get an InterruptedIOException during the 'conn.send()' operation. The message is "The connection was closed."Code:String addr = "mms://+" + phone + ":2000"; MessageConnection conn = (MessageConnection) Connector.open(addr); MultipartMessage msg = (MultipartMessage) conn.newMessage(MessageConnection.MULTIPART_MESSAGE); msg.setSubject("Test"); msg.addMessagePart(getTextPart(message)); conn.send(msg); conn.close();
The security dialog pops up, asking me if I want to allow an MMS, and I hit yes, but then this exception hits.
I can send MMS messages from the phone's app. Does anyone have experience with stuff like this? I've been bashing my head against it for days.![]()