title: I can't start my application with Android Splash Screen
body: <p>I'm trying to add splash screen activity to my android application, I'm doing everything what I saw on lessons on the internet but it doesn't work. It always say "unfortunately, <em>*</em> has stopped." What can be the reason? </p>
  
  <p>Thanks..</p>
  
  <p>my main activity</p>
  
  <pre><code>&lt;code&gt;package com.fckirbay.istatistikelkitap;
  
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  
  public class MainActivity extends Activity {
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.acilis);
  
          Thread thread = new Thread() {
  
              @Override
              public void run() {
  
                  try {
                      synchronized (this) {
                          wait(4000);
                      }
                  } catch (InterruptedException e) {
  
                      // Hata yönetimi
  
                  } finally {
  
                      finish();
  
                      // Yeni açılmak istenen Intent
                      Intent intent = new Intent();
                      intent.setClass(getApplicationContext(), acilis.class);
                      startActivity(intent);
  
                  }
  
              }
          };
  
          // Thread başlatılıyor
          thread.start();
  
      }
  }&lt;/code&gt;
  </code></pre>
  
  <p>mysplash screen</p>
  
  <pre><code>package com.fckirbay.istatistikelkitap;
  
  import com.fckirbay.istatistikelkitap.R;
  import android.os.Bundle;
  import android.app.Activity;
  import android.content.Intent;
  import android.view.Menu;
  import android.view.View;
  import android.widget.Button;
  
  
  public class acilis extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          Button tablolar=(Button)findViewById(R.id.tablolar);   
          Button istatistikciler=(Button)findViewById(R.id.istatistikciler);   
          Button unite1=(Button)findViewById(R.id.unite1);   
          Button unite2=(Button)findViewById(R.id.unite2);
          Button unite3=(Button)findViewById(R.id.unite3);   
          Button unite4=(Button)findViewById(R.id.unite4);
          Button unite5=(Button)findViewById(R.id.unite5);
          Button unite6=(Button)findViewById(R.id.unite6);
          Button devam=(Button)findViewById(R.id.devam);
  
          devam.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                  startActivity(new Intent("com.fckirbay.istatistikelkitap.EKRANIKI"));
              }
          });
  
          tablolar.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                  startActivity(new Intent("com.fckirbay.istatistikelkitap.TABLOLAR"));
              }
          });
  
          istatistikciler.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                  startActivity(new Intent("com.fckirbay.istatistikelkitap.ISTATISTIKCILER"));
              }
          });
  
          unite1.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                  startActivity(new Intent("com.fckirbay.istatistikelkitap.UNITE1"));
              }
          });
  
          unite2.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                  startActivity(new Intent("com.fckirbay.istatistikelkitap.UNITE2"));
              }
          });
  
          unite3.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                  startActivity(new Intent("com.fckirbay.istatistikelkitap.UNITE3"));
              }
          });
  
          unite4.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                  startActivity(new Intent("com.fckirbay.istatistikelkitap.UNITE4"));
              }
          });
  
          unite5.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                  startActivity(new Intent("com.fckirbay.istatistikelkitap.UNITE5"));
              }
          });
  
          unite6.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                  startActivity(new Intent("com.fckirbay.istatistikelkitap.UNITE6"));
              }
          });
  
  
  
  
  
      }
  
  
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main, menu);
          return true;
      }
  
  }
  </code></pre>
  
  <p>and activity 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.fckirbay.istatistikelkitap"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="17" /&gt;
  
      &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.fckirbay.istatistikelkitap.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.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name="com.fckirbay.istatistikelkitap.acilis"
              android:label="@string/app_name" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.ACILIS" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
       &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>