Created
April 30, 2018 14:13
-
-
Save maruf00014/454caf41890270e120e6e363f614ef8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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