title: Hide Action Bar for Splash Screen
body: <p>I'm trying to create splash screen without action bar.<br />
  Firstly before created splash screen, action bar in main activity and  when I create splash screen, action bar comes to splash screen and main activity is full screen. I searched method like <code>getwindow()</code>, <code>getActionBar()</code>, but when I use these method program says to me unfortunately stopped. So what I'm missing?</p>
  <p>How can I avoid <code>actionBar</code> in splash screen?</p>
  <p>My code:</p>
  <pre><code>public class MainActivity extends ActionBarActivity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      
  
      setContentView(R.layout.splash_item);
      
      Thread th=new Thread(){
          public void run(){
              try {
                  sleep(4000);
                  Intent intent=new Intent(MainActivity.this,SplashScreen.class);
                  startActivity(intent);
                  
              } catch (Exception e) {
                  e.printStackTrace();
              }
              finally{
                  finish();
              }
          }
      };
      th.start();
  }
  </code></pre>
  <p>MANİFEST:</p>
  <pre><code>  &lt;application
      android:allowBackup=&quot;true&quot;
      android:icon=&quot;@drawable/ic_launcher&quot;
      android:label=&quot;@string/app_name&quot;
      android:theme=&quot;@style/AppTheme&quot; &gt;
      &lt;activity
          android:name=&quot;.MainActivity&quot;
          android:label=&quot;@string/app_name&quot; &gt;
          &lt;intent-filter&gt;
              &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
  
              &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
       &lt;activity
          android:name=&quot;.SplashScreen&quot;
          android:label=&quot;@string/app_name&quot; 
          &gt;
          &lt;intent-filter&gt;
              &lt;action android:name=&quot;android.intent.action.SPLASHSCREEN&quot; /&gt;
  
              &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>