Skip to content

Instantly share code, notes, and snippets.

@cbedoy
Created June 15, 2015 05:38
Show Gist options
  • Save cbedoy/0117a248bd978fb35146 to your computer and use it in GitHub Desktop.
Save cbedoy/0117a248bd978fb35146 to your computer and use it in GitHub Desktop.
Easy Splash :)
public class SplashViewController extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.el_layout_de_mi_splash);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Intent intent = new Intent(SplashViewController.this, LaOtraActivity.class);
startActivity(intent);
finish();
}
}, 3500);
//3500 milisegundos muestra el splash y luego mndas a llamar la nueva activity
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment