我需要你的帮助......我有一个应用程序,它在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,Insalled Ubuntu卸载了OS X并导入了该项目。现在它只是崩溃了......你能帮助我吗?如果需要更多细节请咨询!
答案 0 :(得分:0)
我刚删除导入的实用程序并重新导入它们......现在工作正常。