code

private static int SPLASH_SCREEN_TIME_OUT = 2000; requestWindowFeature(Window.FEATURE_NO_TITLE); this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); getSupportActionBar().hide(); this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); new Handler().postDelayed(new Runnable() { @Override public void run() { Intent i = new Intent(MainActivity.this, Home.class); startActivity(i); finish(); } }, SPLASH_SCREEN_TIME_OUT); android:name=".MainActivity" android:exported="true">
Previous Post Next Post