text: Q:
  
  How can I kill an activity - Android
  
  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
  
  A:
  
  You could close Activity 2 and 3 with the finish() method when you start the next activity in the sequence. This will bring you from 4 to 1, but also from 3 to 1. 
  
  