Android/Java: Crear un SplashScreen para nuestra aplicación
Codigo java para el onCreate:
- Thread myThread = new Thread(){
- @Override
- public void run(){
- try {
- sleep(2000);
- Intent intent = new Intent(getApplicationContext(), MainActivity.class);
- startActivity(intent);
- finish();
- } catch (InterruptedException e){
- e.printStackTrace();
- }
- }
- };
- myThread.start();
Comments
Post a Comment