📜  时间后做功能 android studio - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:45.343000             🧑  作者: Mango

代码示例1
new Timer().schedule(new TimerTask() {          
    @Override
    public void run() {
        // this code will be executed after 2 seconds       
    }
}, 2000);