返回首页

Java ME的定时提醒帮助它显示消息,但没有立刻退出,它不会等待超时运行


public void alert()

{

    Alert alert = new Alert("picture recived");

    alert.setTimeout(20000);

    Display.getDisplay(this).setCurrent(alert);

}

 

public void btServerReady()

    {

        form.append("Waiting for picture");

        alert();

    }

回答