title: Android app opens after a few seconds after pressing home button during splash screen
body: <p>I am having an issue I can't seem to figure out the reason for. </p>
  
  <p>When you launch the app, a splash screen is first displayed for 2.5 seconds before finishing and starting a new activity. If you press the home or back button during this time the app will close as normal. However after a few seconds (longer than 2.5) the app will open and start from the activity that comes after the splash screen.</p>
  
  <p>Any help on why this happens is appreciated!</p>
  
  <p>Here is the implementation of the Splash screen (I do however not believe anything here causes this issue as I've tried different implementations)</p>
  
  <pre><code>`public class SplashScreenActivity extends AppCompatActivity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_splash_screen);
  
      Thread myThread = new Thread(){
          @Override
          public void run() {
              try {
                  sleep(2500);
                  Intent intent = new Intent(getApplicationContext(),MainActivity.class);
                  startActivity(intent);
                  finish();
              } catch (InterruptedException e) {
                  e.printStackTrace();
              }
          }
      };
      myThread.start();` 
  </code></pre>
  
  <p>Here's the manifest</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
      &lt;activity
          android:name=".activities.MainActivity"
          android:label="@string/app_name"
          android:theme="@style/AppTheme.NoActionBar"
          android:launchMode = "singleInstance"&gt;
      &lt;/activity&gt;
      &lt;activity android:name=".activities.SplashScreenActivity"
          android:theme="@style/Theme.AppCompat.NoActionBar"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;receiver android:name=".alert.BroadCaster" &gt;
      &lt;/receiver&gt;
      &lt;service android:name=".timer.TimerService"
          android:process=":timerservice" /&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>