Java中在特定时间执行任务

Timer timer = new Timer();
		TimerTask task = new TimerTask()
		{
			@Override
			public void run()
			{
				Intent intent = new Intent(Welcome.this, AniGridViewActivity.class);
				Welcome.this.startActivity(intent);
			}
		};
		
		timer.schedule(task, DELAY*1000);


你可能感兴趣的:(java,timer,任务,delay)