2013-08-30 104 views
-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并导入该项目。现在它只是崩溃...你能帮我吗?如果需要更多的细节问请!

回答

0

我刚刚删除导入的实用程序,并重新导入它们......现在工作正常。