title: Android - Fetching XML Data from web(Using AsyncTask) and Progressbar related problem
body: <p>I am fetching an XML data from the web using HTTP GET/POST.
  Right now i have done it in simple way (i.e. without threaed).</p>
  
  <p>According to the below link, i tried to implement it with Progress bar dialog with Thread
  <a href="http://www.ceveni.com/2009/09/sample-progress-bar-dialog-in-android.html" rel="nofollow noreferrer">http://www.ceveni.com/2009/09/sample-progress-bar-dialog-in-android.html</a></p>
  
  <p>But how do i come to know about the finish time  of fetching XML from the web.(i.e. <strong>what should be the sleep time and also when to dismiss the progress bar dialog box</strong>)</p>
  
  <p>Let me clear more about my problem =>  In activity,when the user click on "Fetch data" button,
  the "Progress bar" dialog box should be appeared and it should be disappear only when the fetching is completed
  successfully.</p>
  
  <p>I think this can be done with "<strong>AsyncTask</strong>" but dont know how to use that concept for this problem.</p>
  
  <p>So how do i do it ?</p>