protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.start_view);
myApp = (MyApp) StartActivity.this.getApplication();
myApp.addActivity(this);
//start new activity
new Timer().schedule(new TimerTask() {
@Override
public void run() {
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
//start new activity
Intent it=new Intent();
it.setClass(StartActivity.this,MainActivity.class);
startActivity(it);
StartActivity.this.finish();
}
}, 1000);
}
adroid设置启动app后显示停留的页面
最新推荐文章于 2023-07-24 11:51:57 发布