@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(context); if(sharedPref.getBoolean(“isFirstTime”, true)){ Intent startWelcomeScreen = new Intent(this,Welcome.class); startActivity(startWelcomeScreen); finish(); Intent startWelcomeScreen = new Intent(this,Welcome.class); startActivity(startWelcomeScreen); finish(); } setContentView(R.layout.activity_main); } MainActivity.java If your app is executing for the first time, then it is redirected to Welcome screen. Notice the finish() call in the Main Activity. … Read more