Hello,
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).
According to the below link, i tried to implement it with Progress bar dialog with Thread http://www.ceveni.com/2009/09/sample-progress-bar-dialog-in-android.html
But how do i come to know about the finish time of fetching XML from the web.(i.e. what should be the sleep time and also when to dismiss the progress bar dialog box)
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.
I think this can be done with "AsyncTask" but dont know how to use that concept for this problem.
So how do i do it ?