public void fireButton(View v)
{
new Thread(new Runnable(){
@Override
public void run() {
try{
Thread.sleep(1500);
Message msg = new Message();
msg.what = 1;
searchHandler.sendMessage(msg);
}
catch(Exception e){
e.printStackTrace();
}
}
}).start();
}
Handler searchHandler = new Handler(){
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
//睡完兩秒以後換下一題
refreshQustion(testPage);
}
};
沒有留言:
張貼留言