package org.ramaacademy.splashscreen;

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

/** * Created by fitrahramadhan on 8/19/15. */

public class SplashScreen extends Activity {
    Thread splashTread;
    @Override    
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splashscreen);
        Thread splashThread = new Thread() {
            @Override            public void run() {
                try {
                    sleep(1500);
                } catch (InterruptedException e) {

                } finally {
                    Intent i = new Intent(getApplicationContext(),MainActivity.class);
                    startActivity(i);
                    finish();
                }
            }
        };
        splashThread.start();
    }
}