我在用以下代码发送消息时报错:
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.
请问是怎么回事,应该如何解决?谢谢!