これがソースコードです。back基本的なスプラッシュ スクリーンです。またはmenuボタンが押されたら、このアクティビティを終了させたいと思います。
try {
  super.run();
  /**
  * use while to get the splash time. Use sleep() to increase
  * the wait variable for every 100L.
  */
  while (wait < welcomeScreenDisplay) {
    sleep(100);
    wait += 100;
  }
} catch (Exception e) {
  System.out.println("EXc=" + e);
} finally {
  /**
  * Called after splash times up. Do some action after splash
  * times up. Here we moved to another main activity class
  */
  startActivity(new Intent(SplashScreenActivity.this,
  StartActivity.class));
  finish();
}