After running the program, Logcat shows some errors (picture).
But after that program runs and works without a problem. I can’t understand where the problem is.
After running the program, Screen-shot will show for 5 seconds and after that menu (That the activity name is Scroll_View) will show. Now, LogCat shows error.
However, when I click on each button, it works fine without crass or anything else.
Is it important?
This is the code of thread:
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();
}

You receive this exception because Thread’s methods
stop()andstop(Throwable)are deprecated and should never be used.