Start Android activity when receiving the last response from multiple Volley requests
<p>In the OnCreate method of my splashscreen, I make 2 different Volley requests :</p>

<pre><code>RequestQueue queue = AppController.getInstance().getRequestQueue();
GsonRequest&lt;WPPosts&gt; myReq = new GsonRequest&lt;WPPosts&gt;(urlJson, WPPosts.class, null,createMyReqSuccessListener(),createMyReqErrorListener());
queue.add(myReq);
</code></pre>

<p>and another one to get the categories. </p>

<p>I would like to start my MainActivity when I receive the last response from these 2 resquests :</p>

<pre><code>private Response.Listener&lt;WPPosts&gt; createMyReqSuccessListener() {
    return new Response.Listener&lt;WPPosts&gt;() {
        @Override
        public void onResponse(WPPosts response) {...}
</code></pre>

<p>Regardless response arrives first or last.</p>

<p>Would it be a semaphorical approach ?</p>