我需要你的帮助...我有一个应用程序,它在 onCreate() 中有一个启动画面。这是代码:
public class MainActivity extends Activity {
private final int SPLASH_DISPLAY_LENGHT = 3000;
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
super.setTheme(R.style.Fullscreen);
setContentView(R.layout.activity_main);
/* New Handler to start the Menu-Activity
* and close this Splash-Screen after some seconds.*/
new Handler().postDelayed(new Runnable(){
@Override
public void run() {
/* Create an Intent that will start the Menu-Activity. */
Intent mainIntent = new Intent(MainActivity.this,List.class);
MainActivity.this.startActivity(mainIntent);
MainActivity.this.finish();
}
}, SPLASH_DISPLAY_LENGHT);
}
我从我的 Macbook air 中卸载了 OS X,安装了 Ubuntu 并导入了该项目。现在它只是崩溃了......你能帮帮我吗?如果需要更多细节请询问!