title: My splash screen is loading too slow
body: <p>I am beginner in android development, I am facing issue that " My android app splash screen is loading too slow " please help me in fixing this issue.</p>
  
  <p>Here is my spash.java source code : </p>
  
  <pre><code>import android.annotation.SuppressLint;
  import android.annotation.TargetApi;
  import android.app.ActionBar;
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Build;
  import android.os.Bundle;
  
  @SuppressLint("NewApi")
  public class Splash extends Activity {
  
          @TargetApi(Build.VERSION_CODES.HONEYCOMB)
          @SuppressLint("NewApi")
          @Override
          protected void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.activity_splash);
  
              ActionBar actionBar = getActionBar();
              actionBar.hide();
  
              Thread t =new Thread(){
                  public void run(){
                      try{
                          sleep(10000);
                      }catch(InterruptedException e){
                          e.printStackTrace();
                      }finally{
                          Intent i =new Intent(Splash.this,MainActivity.class);
                          startActivity(i);
                      }
                  }
              };
              t.start();
          }
          @Override
          public void onPause(){
              super.onPause();
              finish();
          }
  
      }
  </code></pre>