Intent Flag Jasne zadanie

Intent intent = new Intent(SplashScreenActivity.this, RegisterOrLoginActivity.class);
                    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
                    startActivity(intent);
KushalCodes