package org.indywidualni.fblite.activity; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import java.util.Timer; import java.util.TimerTask; public class SplashActivity extends Activity { // 220 milliseconds is less than a blink of an eye private static final int TIME = 220; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // delay is only needed to allow full system animation new Timer().schedule(new TimerTask() { @Override public void run() { Intent intent = new Intent(SplashActivity.this, MainActivity.class); startActivity(intent); finish(); } }, TIME); } }