package com.chinaappsremover.ui; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.AppCompatActivity; import com.chinaappsremover.R; public class Splash extends AppCompatActivity { protected void onCreate(Bundle bundle) { super.onCreate(bundle); setContentView(R.layout.activity_splash); ActionBar supportActionBar = getSupportActionBar(); if (supportActionBar != null) { supportActionBar.hide(); } new Handler().postDelayed(new Runnable() { public void run() { Splash splash = Splash.this; splash.startActivity(new Intent(splash, MainActivity.class).setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK)); Splash.this.finish(); } }, 2500); } }