Two situation for Splash Screen
if ads is enable then Splash Screen time will be 2 seconds and Ads_Fullscreen time will be 8 seconds then final Main Activity will come.
if ads is not enable then Splash Screen time will be 5 seconds and then Main Activity will come.
This is code for splash screen
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Intent i;
if (prefManager.isFirstTimeLaunch()){
i = new Intent(SplashScreen.this,WelcomeActivity.class);
prefManager.setFirstTimeLaunch(false);
}else if(bn_bstatus.equals("enable")) {
i = new Intent(SplashScreen.this,Ads_Fullscreen.class);
}else{
i = new Intent(SplashScreen.this,MainActivity.class);
}
startActivity(i);
finish();
}
},SPLASH_TIME_OUT);