title: Hide alert dialog in android
body: <p>I have a simple alert dialog, it ll display when a button click is occurs.
  and hide automatically after receiving data from web service (On Button click ) .</p>
  
  <p>The code below is showing the alert dialog, but i cant hide it after receiving data also.</p>
  
  <pre><code>alertDialog1.setTitle("Please Wait");
                          alertDialog1.setCancelable(false);
                          alertDialog1.setMessage("Fetching Info");
                          alertDialog1.show();`
  </code></pre>