Android小技巧——實現代碼延遲執行

run()函數裏的代碼就是延遲後執行的代碼。 ide Timer timer = new Timer(); TimerTask task = new TimerTask() { @Override public void run() { startActivity(intent); finish(); } }; timer.schedule(
相關文章
相關標籤/搜索