运行程序后,Logcat 显示一些错误(图片)。但是在该程序运行并正常工作之后。我不明白问题出在哪里。
运行程序后,屏幕截图将显示 5 秒钟,然后显示该菜单(活动名称为 Scroll_View)。现在,LogCat 显示错误。但是,当我单击每个按钮时,它可以正常工作,没有粗鲁或其他任何东西。
那很重要么?
这是线程的代码:
protected boolean _active = true;
protected int _splashTime = 5000;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
// thread for displaying the SplashScreen
Thread splashTread = new Thread() {
@Override
public void run() {
try {
int waited = 0;
while(_active && (waited < _splashTime)) {
sleep(100);
if(_active) {
waited += 100;
}
}
} catch(InterruptedException e) {
// do nothing
} finally {
finish();
startActivity(new Intent("mobilesoft.asia.malaysia_directory.SplashScreen.Scroll_View"));
stop();
}
}
};
splashTread.start();
}