请教一个J2ME中使用WMA1.0发送消息的问题...

萧远山
04-12-02 118

我在用以下代码发送消息时报错:

TextMessage tmsg = (TextMessage)clientConn.newMessage(MessageConnection.TEXT_MESSAGE);
tmsg.setAddress("sms://18643630999:5000");
tmsg.setPayloadText(msgToSend);
clientConn.send(tmsg);

错误信息:

Warning: To avoid potential deadlock, operations that may block, such as
networking, should be performed in a different thread than the
commandAction() handler.


请问是怎么回事,应该如何解决?谢谢!