title: How to add a spinner to a splashscreen in android
body: <p>I have implemented a Splash Screen on an android app I am building using Android Studio and I would like to add a spinner to the splash screen. Can anyone give me a hand on this:</p>
  
  <p>Here is the code on my splashScreen.java Class:</p>
  
  <pre><code>package com.packagename.appname;
  
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.view.Window;
  
  /**
   * Created by VAIO1 on 05/09/2014.
   */
  public class splashScreen extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          this.requestWindowFeature(Window.FEATURE_NO_TITLE);
          setContentView(R.layout.splash);
          Thread logoTimer = new Thread() {
  
              public void run() {
                      try {
                             sleep(3000);
                             Intent splashIntent = new Intent("com.packagename.appname.SPLASH");
                             startActivity(splashIntent);
                      } catch (InterruptedException e) {
                          e.printStackTrace();
                      } finally {
                              finish();
                      }
                 }
  
          };
          logoTimer.start();
      }
  
      @Override
      protected void onPause() {
          super.onPause();
      }
  
  }
  </code></pre>
  
  <p>Here is the code for my splash.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"
      android:id="@+id/splashId"&gt;
  
      &lt;ImageView
          android:id="@+id/imageView1"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:layout_gravity="center"
          android:src="@drawable/screen"
          android:cropToPadding="false"
          android:scaleType="fitXY"/&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Thank you for any feedback on how to achieve this.</p>