启动页面设置

	final int _splashTime = 10;

		Thread splashTread = new Thread() {  
			@Override
			public void run() {
				try {
					int waited = 0;
					while (waited < _splashTime) {
						sleep(1700);
						waited += 100;
					}
				} catch (InterruptedException e) {
				} finally {
					// 启动主应用
					Intent intent = new Intent();
					intent.setClass(StartScoreActivity.this,
									MainActivity.class);
					startActivity(intent);
					finish();
				}
			}
		};
		splashTread.start();

 

你可能感兴趣的:(启动)