In my application I have created a splash screen type of thing in android. It should remain for 5 seconds. My problem is that how I display another activity automatically af
new Handler().postDelayed(new Runnable() { @Override public void run() { final Intent mainIntent = new Intent(LaunchActivity.this, HomeActivity.class); LaunchActivity.this.startActivity(mainIntent); LaunchActivity.this.finish(); } }, 5000);