j2me发送短信的代码,在wtk中测试可以发送消息,但是放到手机上就发送不了,发送后手机有提示是否进行sms操作,.确定后就没反应了.这是什么问题啊???
package com.gao.sms;
import javax.microedition.lcdui.*;
import javax.wireless.messaging.*;
import javax.microedition.io.Connector;
/**
* <p> Title: </p>
*
* <p> Description: </p>
*
* <p> Copyright: Copyright (c) 2007 </p>
*
* <p> Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class SMSSendFrame extends Form implements CommandListener {
private Display display;
public SMSSendFrame(Display display) {
super( "短信发送 ");
this.display = display;
try {
jbInit();
} catch (Exception e) {
e.printStackTrace();
}
}
private void jbInit() throws Exception {
// Set up this Displayable to listen to command events
setCommandListener(this);
// add the Exit command
addCommand(new Command( "Exit ", Command.EXIT, 1));
addCommand(sms_send);
this.append(sms_number);
this.append(sms_port);
this.append(sms_content);
sms_number.setLabel( "接收号码: ");
sms_number.setConstraints(TextField.PHONENUMBER);
sms_number.setMaxSize(20);
sms_port.setLabel( "接收端口 ");
sms_port.setConstraints(TextField.PHONENUMBER);
sms_port.setMaxSize(20);
sms_content.setLabel( "接收内容: ");
sms_content.setMaxSize(100);
sms_content.setPreferredSize(200, 132);
}
public void commandAction(Command command, Displayable displayable) {