document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. package user.example;
  2.  
  3. import android.content.Intent;
  4. import android.os.Handler;
  5. import android.support.v7.app.AppCompatActivity;
  6. import android.os.Bundle;
  7. import android.view.Window;
  8. import android.view.WindowManager;
  9.  
  10. public class SplashScreen extends AppCompatActivity {
  11.  
  12.     //set waktu lama screen
  13.     private static int splashinterval = 5500;
  14.  
  15.     @Override
  16.     protected void onCreate(Bundle savedInstanceState) {
  17.         super.onCreate(savedInstanceState);
  18.         requestWindowFeature(Window.FEATURE_NO_TITLE);
  19.         getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
  20.                 WindowManager.LayoutParams.FLAG_FULLSCREEN);
  21.  
  22.  
  23.         setContentView(R.layout.activity_splash_screen);
  24.  
  25.         new Handler().postDelayed(new Runnable() {
  26.             @Override
  27.             public void run() {
  28.                 // TODO Auto-generatd method stub
  29.                 Intent i = new Intent(SplashScreen.this, NamaClassmu (ActivityMu).class);
  30.                 startActivity(i);
  31.  
  32.                 // jeda setelah splash screen
  33.                 finish();
  34.             }
  35.         }, splashinterval);
  36.     }
  37. }
');