Advertisement
Guest User

Untitled

a guest
Sep 5th, 2014
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1. package ph.url.skyengine.gradecalculator;
  2.  
  3. import android.app.Activity;
  4. import android.content.Intent;
  5. import android.os.Bundle;
  6.  
  7. /**
  8.  * Created by xSkyFire on 9/6/2014.
  9.  */
  10. public class SplashScreen extends Activity {
  11.     @Override
  12.     protected void onCreate(Bundle savedInstanceState) {
  13.         super.onCreate(savedInstanceState);
  14.         setContentView(R.layout.splashscreen);
  15.  
  16.         Thread background = new Thread() {
  17.             public void run() {
  18.  
  19.                 try {
  20.                     sleep(5*1000);
  21.  
  22.                     Intent i = new Intent(getBaseContext(), GradeCalculator.class);
  23.                     startActivity(i);
  24.  
  25.                     finish();
  26.                 }
  27.                 catch (Exception e)
  28.                 {
  29.  
  30.                 }
  31.             }
  32.         };
  33.  
  34.         background.start();
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement