android clear task vs clear top code example
Example: intent flag clear task
Intent intent = new Intent(SplashScreenActivity.this, RegisterOrLoginActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
startActivity(intent);