Hello i would like to perform some lengthy operation in a background thread and in the mean time show the user a "HORIZONTAL PROGRESS BAR" and keep updating this as the operation in the background is happening . I know i can achieve this with the asynctask but till now i have only been using progressdialog and it is much simpler with that . Please help .
protected HttpResponse doInBackground(Void... params)
{
Client.getParams().setIntParameter("http.connection.timeout",5000);
try
{
return Client.execute(loginPost);
}
catch(Exception e)
{
return null;
}
}
Now this being my doInBackground() method , how can i really know the status of the ongoing operation to be able to update my progressBar