title: Progress Dialog does not display due to use of thread.get() method
body: <p>I want to display a Progress Dialog while I have two threads running one after the other, but my data structure that I use gets populated via the threads, becomes null. Thus I used thread.get() method to wait for the thread to be finished....not sure how I can get around this here is an example of one of my Async Threads:</p>
  
  <pre><code>private void performDetailSearch(String reference) {
  
      String addplus = searchterm.replace(" ", "+");  
      RestClientDS restpSd = new RestClientDS();
      String url = PLACES_DETAILS_URL +"reference="+ reference + "&amp;sensor=false&amp;key=" + API_KEY;
      Log.d("url",url);
      String[] URL = {url};
      restpSd.execute(URL);
  
      try {
          restpSd.get();
      } 
      catch (InterruptedException e1) {
          // TODO Auto-generated catch block
          e1.printStackTrace();
      }
      catch (ExecutionException e1) {
          // TODO Auto-generated catch block
          e1.printStackTrace();
      }
  }
  </code></pre>