Created
June 15, 2015 05:38
-
-
Save cbedoy/0117a248bd978fb35146 to your computer and use it in GitHub Desktop.
Easy Splash :)
This file contains hidden or 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 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