title: splash screen using android handler is not working
body: <p>my splash screen is not working.
  it just flashes a empty layout for 2 seconds and loads the mainactivity...
  i have added a png image from the drawable as the android:background for the splash screen.
  but it does not displays the image..
  i have also tried a textfield in the splash screen, but again it displays an empty layout..</p>
  
  <p>this is my code for splash screen activity</p>
  
  <p>public class SplashScreenActivity extends Activity {</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      //setContentView(R.layout.activity_splash_screen);
  
      //Handler handler = new Handler();
  
      // run a thread after 2 seconds to start the home screen
      //handler.postDelayed(new Runnable() {
      new Handler().postDelayed(new Runnable() {
          @Override
          public void run() {
  
              // make sure we close the splash screen so the user won't come
              // back when it presses back key
  
              finish();
              // start the home screen
  
              Intent intent = new Intent(SplashScreenActivity.this,
                      MainMenuActivity.class);
  
              startActivity(intent);
  
  
          }
  
      }, 2000); // time in milliseconds (1 second = 1000 milliseconds) until
                  // the run() method will be called
  
  }
  </code></pre>
  
  <p>}</p>