第一頁 返回 繼續 最後一頁 摘要 圖形

Service的寫法(二)

new Thread(){

public void run(){

while(true)

{

//程式寫這裡

try {Thread.sleep(1000);} catch (InterruptedException e) {e.printStackTrace();}

}

}}