Skip to content
Permalink
4b4c33655e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
32 lines (22 sloc) 781 Bytes
package com.example.booksharing21;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import androidx.appcompat.app.AppCompatActivity;
public class SplashActivity extends AppCompatActivity {
private static int SPLASH_TIME_OUT = 4000;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
// Splash page
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Intent homeIntent = new Intent(SplashActivity.this,MainActivity.class);
startActivity(homeIntent);
finish();
}
}, SPLASH_TIME_OUT);
}
}