I want to show a progress bar during a web service call. I called the progress bar before the service call, but it is called after the service call is completed, and I got a response.
ProgressDialog dialog = ProgressDialog.show(LogIn.this,"","Loading. Please wait...", true); status=Loginvalid(method,username,psword);
But the execution dialog starts after receiving a response from the service. Please, how can I fix this problem.
source share