title: How to change activity after 5 seconds?
body: <p>I made a sort of index activity with my personal logo.
  I want that after 5 seconds change activity.
  So I prepared 2 layout, I run the launcher.
  In launcher activity I set:</p>
  
  <pre><code>Intent intent = new Intent(Home.this, IndexActivity.class);
          intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
          try {
              Thread.sleep(5000);
          } catch (InterruptedException e) {
              e.printStackTrace();
          }
          startActivity(intent);
          finish();
  </code></pre>
  
  <p>The problem is that the activity stay blocked in a white activity and after 5 seconds change activity.</p>
  
  <p>Did I make a mistake?</p>
  
  <p>How can I create a fade animation? And how can I run it? Thanks</p>