-1
我需要你的幫助...我有一個應用程序,它在onCreate()中有一個閃屏。這裏是代碼:Android - App崩潰
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,Insbuntu Ubuntu並導入該項目。現在它只是崩潰...你能幫我嗎?如果需要更多的細節問請!