Skip to content

Instantly share code, notes, and snippets.

@maruf00014
Created April 30, 2018 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maruf00014/454caf41890270e120e6e363f614ef8a to your computer and use it in GitHub Desktop.
Save maruf00014/454caf41890270e120e6e363f614ef8a to your computer and use it in GitHub Desktop.
public class welcomeScreen extends AppCompatActivity {
private static int SPLASH_TIME_OUT = 1500;
@Override
protected void onCreate( Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.welcome_screen);
new Handler().postDelayed(new Runnable(){
@Override
public void run(){
Intent splash = new Intent(welcomeScreen.this, MainActivity.class);
startActivity(splash);
finish();
}
},SPLASH_TIME_OUT );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment