2010-12-03 73 views

回答

1

创建扩展PopupScreen类,并使用TimerTask自动关闭。所以,你会在你的构造函数代码看起来有点像这样:

Timer timer = new Timer(); 
    timer.schedule(new TimerTask(){ 

     public void run() 
     { 
      if(TestScreen.this.isDisplayed()) 
      { 
       synchronized (Application.getEventLock()) 
       { 
        TestScreen.this.close(); 
       } 
      } 
     } 

    }, WAIT_TIME_IN_MILLISECONDS); 
2

你也可以使用

Status.show(String message) 

显示两秒钟一个状态屏幕。

Status.show(String message, Bitmap bitmap, int time) 

显示与指定 图标,对于指定的时间一状态屏幕。