/** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash); Handler x = new Handler(); x.postDelayed(new splashhandler(), 2000);
} class splashhandler implements Runnable{ public void run() { startActivity(new Intent(getApplication(),MainActivity.class)); SplashActivity.this.finish(); } }