package edu.psu.rcy5017.publicspeakingassistant;

import edu.psu.rcy501.publicspeakingassistant.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;

public class SplashScreenActivity extends Activity {
	
	private static final String TAG = "SplashScreenActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        
        Log.d(TAG, "Splash acticity started");
        
        final int SPLASH_TIME_OUT = 3000;
 
        new Handler().postDelayed(new Runnable() {
 
            /*
             * Showing splash screen with a timer. This will be useful when you
             * want to show case your app logo / company
             */
 
            @Override
            public void run() {
                // This method will be executed once the timer is over
                // Start app main activity
                Intent i = new Intent(SplashScreenActivity.this, MainActivity.class);
                startActivity(i);
		
                // close this activity
                finish();
            }
        }, SPLASH_TIME_OUT);
    }
}

@@ -229,16 +229,44 @@
 til.Log;
+%0Aimport android.view.Window;
 %0A%0Apublic
@@ -489,16 +489,123 @@
 State);%0A
+        %0A        // Remove title bar.%0A        this.requestWindowFeature(Window.FEATURE_NO_TITLE);%0A        %0A
         

Remove the title bar.