title: How can I close activity without showing splash screen again?
body: <p>I am making a splash screen and need help closing this activity so if a user presses the 'BACK' button they go back to the home screen, NOT the splash screen...</p>
  
  <pre><code>package com.Sosotech;
  
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.os.Handler;
  
  public class Splashscrn extends Activity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.splashscrn);
  
          Handler x = new Handler();
          x.postDelayed(new SplashHandler(), 5000);
  
      }
  
   class SplashHandler implements Runnable {
       public void run() {
           startActivity(new Intent(getApplication(), Main.class));
  
  
  
       }
   }
  
  }
  </code></pre>
  
  <p>PS: I just want to know if it is possible to make the splash screen come up every time the app is resumed. I will not be implementing this, I just wondered how it would be done.</p>