установить значение по умолчанию SPLASH_TIME_OUT
как 5000
миллисекунды.
public final int SPLASH_TIME_OUT = 5000;
Для активности SplashScreen
final Intent intent;
if (ads.enable()) {
intent = new Intent(SplashScreen.this, WelcomeActivity.class);
prefManager.setFirstTimeLaunch(false);
} else if (bn_bstatus.equals("enable")) {
intent = new Intent(SplashScreen.this, Ads_Fullscreen.class);
SPLASH_TIME_OUT = 2000;
} else {
intent = new Intent(SplashScreen.this, MainActivity.class);
}
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
startActivity(intent);
finish();
}
}, SPLASH_TIME_OUT);
Для Ads_Fullscreen Activity
SPLASH_TIME_OUT = 8000;
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
// start MainActivity
}
}, SPLASH_TIME_OUT);