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后显示停留的页面
猜你喜欢
转载自blog.csdn.net/weixin_39418164/article/details/80225233
今日推荐
周排行