title: AsyncTasks parallel execution
body: <p>I have a little doubt over the execution of the Async. task i want to minimize the time taken by the http requests that my application is executing,so after some R&amp;D on the internet i opted for the option described below,My question is using the code described below,will my requests will be processing in parallel,if yes is this one the best efficient method,if not how can i make them execute in parallel so that user don't have to wait much!
  Best Regards.</p>
  
  <pre><code> if (isInternetAvailable) {
  
              if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.HONEYCOMB) {
  
  
                  new DownloadXmlTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, URLORDERLIST);
                  new DownloadXmlTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, URLORDERDETAILS);
                  new DownloadXmlTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, URLCUSTOMERDETAILS);
  
              } else {
  
  
                  new DownloadXmlTask().execute(URLORDERLIST);
                  new DownloadXmlTask().execute(URLORDERDETAILS);
                  new DownloadXmlTask().execute(URLCUSTOMERDETAILS);
  
              }
  
  
              handler.post(new Runnable() {
  
                  @Override
                  public void run() {
                      Toast.makeText(
                              getApplicationContext(),
                              "Fetch Data",
                              Toast.LENGTH_LONG).show();
                  }
              });
          } else {
              handler.post(new Runnable() {
  
                  @Override
                  public void run() {
                      Toast.makeText(
  
                              getApplicationContext(),
                              "Please Try Again Later,No internet Connectivity Detected!",
                              Toast.LENGTH_SHORT).show();
  
                  }
              });
          }
  </code></pre>