package beyondsoft.bewoklientenapp;

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

import java.util.logging.Handler;

/**
 * Created by bib on 23.05.2016.
 */
public class SplashScreenActivity extends Activity {


    private static final int SPLASH_DURATION = 4000;
    private Handler startMain;


    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splashscreen);

        Thread logoTimer = new Thread() {
            public void run(){
                try{
                    int logoTimer = 0;
                    while(logoTimer < 2125){
                        sleep(75);
                        logoTimer = logoTimer +100;
                    };
                    startActivity(new Intent(getBaseContext(),UberprufungsActiviti.class));
                }

                catch (InterruptedException e) {

                    e.printStackTrace();
                }

                finally{
                    finish();
                }
            }
        };

        logoTimer.start();
    }

}