Timer t = new Timer();
t.schedule(new TimerTask() {
@Override
public void run() {
Intent i = new Intent(MainActivity.this, Dashboard.class);
startActivity(i);
}
}, 3000);
Github Link:
https://github.com/ybq/Android-SpinKit