//设置全屏显示
This.requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout._.xml)
final Intent it =
new Intent(this, LoginActivity.class);
Timer timer = new Timer();
TimerTask task =
new TimerTask() {
publicvoid run() {
startActivity(it);
WelcomeActivity.this.finish();
}
};
// 安排在指定的时间执行指定的任务。
timer.schedule(task, 1000 * 2);
// 2秒后自动跳转