title: How to hold SplashActivity?
body: <p>I have following activity: </p>
  
  <pre><code>public class SplashActivity extends AppCompatActivity {
  
    @Override
    protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_splash);
  
      StringRequest req = new StringRequest(Request.Method.GET, url,
              new Response.Listener&lt;String&gt;() {
                  @Override
                  public void onResponse(String response) {
                       Intent mainIntent = new Intent(SplashActivity.this, MainActivity.class);
                       SplashActivity.this.startActivity(mainIntent);
                       SplashActivity.this.finish();
                  }
              },
              new Response.ErrorListener() {
                  @Override
                  public void onErrorResponse(VolleyError error) {
                      // Handle error
                  }
              });
      CustomVolleyRequestQueue.getInstance(mCtx).addToRequestQueue(req);
    }
  }
  </code></pre>
  
  <p>It show <code>SplashActivity</code> while request is sending, and when the response is received open other activity. It is ok, except that i need show <code>SplashActivity</code> at least 4 seconds. So how i can do next: </p>
  
  <p>If since the beginning of the show activity passed 4 second and got  response show <code>MainActivity</code> else wait?</p>