package com.stx.openeyes.view.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.WindowManager;
import com.stx.openeyes.MainActivity;
import com.stx.openeyes.R;
/**
* 程序启动页
*/
public class SpashActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//设置全屏
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_spash);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Intent intent = new Intent(SpashActivity.this, MainActivity.class);
startActivity(intent);
finish();
}
}, 1500);
}
}