title: Splash screen not displaying in android
body: <p>When i run the app, SplashScreen blinks for a fraction of second on the screen and disappears completely for 3 seconds. After completing 3 sec MainActivity launches. Question is how to display my splash screen with out disapearing?</p>
  
  <pre><code>public class SplashScreen extends Activity {
  private static int SPLASH_TIME_OUT = 3000;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.splash_screen);
  
      new Handler().postDelayed(new Runnable() {
  
          @Override
          public void run() {
              startActivity(new Intent(SplashScreen.this, MainActivity.class));
  
          }
      }, SPLASH_TIME_OUT);
      SplashScreen.this.finish();
  }
  
  @Override
  public void onBackPressed() {
      SplashScreen.this.finish();
      super.onBackPressed();
  }}
  </code></pre>
  
  <p>MANIFEST FILE</p>
  
  <pre><code>&lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity android:name="com.simbotix.guardianonthego.SplashScreen" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name="com.simbotix.guardianonthego.MainActivity"
              android:label="@string/app_name" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  </code></pre>