Exchange

Splash Screen in Android Studio - Java





protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

new Handler().postDelayed(new Runnable() {
@Override
public void run() {
startActivity(new Intent(MainActivity.this, HomeActivity.class));
finish();
}
}, 3000);

}

Post a Comment

0 Comments