I have 2 activities: Main and List.
From Main you can open List; from List you can open Main.
I\'d like it so that every opening of List does not
Just wanted to add a way to do this in Kotlin:
val i = Intent(this, LogInActivity::class.java) startActivity(i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK))