Try changing the finally clause of your try/catch to this:
Code:
Intent intentLaunchMenu = new Intent(SplashActivity.this, MenuActivity.class);
startActivity(intentLaunchMenu);
finish();
Take out the stop(); It's not necessary (and is deprecated) as your thread is about to end.
From the Android documentation on Thread:
Quote:
stop()
This method is deprecated. because stopping a thread in this manner is unsafe and can leave your application and the VM in an unpredictable state.
|