package mypollen.alucas.android;

import android.app.Activity;

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

public class SplashScreen extends Activity {
    private final int SPLASH_DISPLAY_LENGTH = 5000;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main_splash);

            new Handler().postDelayed(new Runnable(){
                    //@Override
                    public void run() {
                            Intent mainIntent = new Intent(SplashScreen.this,Main.class);
                            SplashScreen.this.startActivity(mainIntent);
                            SplashScreen.this.finish();
                    }
            }, SPLASH_DISPLAY_LENGTH);
           
    }
    
    
}
