I use startActivity(Intent) to create a new activity in my Android application.
Is it possible to kill one of those activities and if yes how?
What I actually want to do is , lets say I have 4 activities at the same time running, opened in this sequence
Activity1 -> Activity2 -> Activity3 -> Activity4
When the user press the back button , instead of going
Activity4 -> Activity3 -> Activity2 -> Activity1 -> Close Application
I want it like this
Activity4 -> Activity1 -> Close Application