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();