J2ME 键盘没有响应急求(在线等)
远程控制网络摄像头按键之后没有反映,苦恼中
public class GetCanvas extends GameCanvas implements Runnable {
protected Get get;
protected Thread thread;
protected int sign, sign1;
private Graphics graphics;
Image im;
Image t;
public Form fmViewPng;
private boolean sleeping;
private Display display;
public GetCanvas(){
super(false);
fmViewPng=new Form( " ");
}
public void start() {
sleeping = false;
thread=new Thread(this);
//input();
thread.start();
}
public void stop(){
sleeping = true;
}
public void run(){
Graphics g = getGraphics();
while (!sleeping){
input();
/* try{
System.out.println( "Connect server error ");
String url = "http://193.60.171.10/cgi-bin/camctrl.cgi?move=left ";
HttpConnection connection =(HttpConnection)Connector.open(url);
InputStream iStrm = connection.openInputStream();