请帮助我用线程编写的所有项目都在告诉我同样的事情
任何带线程的东西都会给我带来问题
请我有比赛要赢请快速回答
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splashscreen);
//getActionBar().hide();
/*start up the splash screen and main menu in a time delayed thread*/
new Handler().postDelayed(new Thread() {
@Override
public void run() {
Intent mainMenu = new Intent(MainActivity.this,
SFMainMenu.class);
MainActivity.this.startActivity(mainMenu);
MainActivity.this.finish();
overridePendingTransition(R.layout.fadein,R.layout.fadeout);
}
}, SFEngine.GAME_THREAD_DELAY);
}