2010-12-03 24 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) 

顯示與指定 圖標,對於指定的時間一狀態屏幕。