package de.fu_berlin.cdv.chasingpictures.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import de.fu_berlin.cdv.chasingpictures.MainActivity;
import de.fu_berlin.cdv.chasingpictures.R;

public class SplashScreen extends Activity {

    private static final long SPLASH_DELAY_MILLIS = 300;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash_screen);
    }

    @Override
    protected void onResume() {
        super.onResume();

        // Start the main activity after a short delay.
        new Handler().postDelayed(
                new Runnable() {
                    @Override
                    public void run() {
                        startActivity(new Intent(getApplicationContext(), MainActivity.class));
                    }
                },
                SPLASH_DELAY_MILLIS
        );
    }
}

@@ -359,9 +359,10 @@
 S = 
-3
+10
 00;%0A
@@ -904,16 +904,50 @@
 lass));%0A
+                        finish();%0A
         

Increase splash screen delay and finish splash screen activity.