Timer timer = new Timer();
timer.schedule(new TimerTask() {
@Override
public void run() {
context.startActivity(i);
},5000);
Handler handler = new Handler();
hanlder.postDelay(new Runnable(){
@Override
public void run() {
context.startActivity(i);
},5000);
}
如果您对如何推迟活动有任何建议,我将非常感谢您的建议。