Guest User

Untitled

a guest
Oct 20th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1. package nl.chalkwebdesign.testproject;
  2.  
  3. import android.app.Activity;
  4. import android.os.Bundle;
  5.  
  6. public class Splash extends Activity {
  7.    
  8.     /** Called when the activity is first created. */
  9.     @Override
  10.     public void onCreate(Bundle savedInstanceState) {
  11.         super.onCreate(savedInstanceState);
  12.         setContentView(R.layout.splash);
  13.         (new Thread(){
  14.  
  15.             public void run() {
  16.                 try{
  17.                     sleep(5000);
  18.                 } catch (Exception e) {
  19.                     e.printStackTrace();
  20.                 }
  21.                 finally {
  22.                     startActivity(new android.content.Intent("nl.chalkwebdesign.testproject.MAINMENU"));
  23.                 }
  24.             }
  25.            
  26.         }).start();
  27.        
  28.        
  29.     }
  30. }
Add Comment
Please, Sign In to add comment