title: splash screen application and hide action bar
body: <p>I'm trying to figure out how is it possible to hide the action bar for a splash screen activity.
  I did something which hide my action bar on my splash screen, but there is one problem:
  before my splash screen appears, there is like an activity with an action bar who appears briefly... and I don't know how to hide it! </p>
  
  <p>My splash screen only appears when we touch the application for the first time like an introduction of the application.</p>
  
  <p>Code :</p>
  
  <pre><code>package com.example.basicmaponline;
  
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.view.Window;
  
  public class Intro extends Activity{
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      super.onCreate(savedInstanceState);
  
  
      getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
      getActionBar().hide();
  
      setContentView(R.layout.intro);
  
      Thread timer = new Thread(){
          public void run(){
              try{
                  sleep(3000);
              }catch (InterruptedException e) {
                  e.printStackTrace();
              }finally{
                  Intent openMenu = new Intent("com.example.basicmaponline.MENU");
                  startActivity(openMenu);
              }
          }
      };
      timer.start();
  }
  
  @Override
  protected void onPause() {
      // TODO Auto-generated method stub
      super.onPause();
      finish();
  }
  
  }
  </code></pre>
  
  <p>Manifest :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.example.basicmaponline"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk
      android:minSdkVersion="11"
      android:targetSdkVersion="17" /&gt;
  &lt;uses-permission android:name="android.permission.CALL_PHONE"&gt;&lt;/uses-permission&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
  &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_GPS"&gt;&lt;/uses-permission&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/lojacidadao"
      android:label="@string/app_name"
       android:theme="@style/AppTheme"&gt;
      &lt;activity
          android:name="com.example.basicmaponline.Intro"
          android:screenOrientation="portrait"
          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.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
      &lt;activity
          android:name="com.example.basicmaponline.Menu"
          android:screenOrientation="portrait"
          android:label="@string/app_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.example.basicmaponline.MENU" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
      &lt;activity
          android:name="com.example.basicmaponline.Mapa"
          android:screenOrientation="portrait"
          android:label="@string/map_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.example.basicmaponline.MAPA" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="com.example.basicmaponline.Lojas"
          android:screenOrientation="portrait"
          android:label="@string/lojas_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.example.basicmaponline.LOJAS" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
      &lt;activity
          android:name="com.example.basicmaponline.InfoLoja"
          android:screenOrientation="portrait"
          android:label="@string/loja_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.example.basicmaponline.INFOLOJA" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
      &lt;activity
          android:name="com.example.basicmaponline.Balcoes"
          android:screenOrientation="portrait"
          android:label="@string/balcoes_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.example.basicmaponline.BALCOES" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
      &lt;activity
          android:name="com.example.basicmaponline.Entidade"
          android:screenOrientation="portrait"
          android:label="@string/balcao_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.example.basicmaponline.ENTIDADE" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
       &lt;activity
          android:name="com.example.basicmaponline.Servicos"
          android:screenOrientation="portrait"
          android:label="@string/servicos_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.example.basicmaponline.SERVICOS" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
       &lt;activity
          android:name="com.example.basicmaponline.InfoServico"
          android:screenOrientation="portrait"
          android:label="@string/servico_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.example.basicmaponline.INFOSERVICO" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
       &lt;activity
          android:name="com.example.basicmaponline.Pesquisar"
          android:screenOrientation="portrait"
          android:label="@string/pesquisa_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.example.basicmaponline.PESQUISAR" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
  &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>