showing progress bar during network call
<p>I want to show the progress bar during web service call. I called progress bar before calling the service, but it is being called after the service call is finished and i have received the response.</p>

<pre><code>ProgressDialog dialog = ProgressDialog.show(LogIn.this,"","Loading. Please wait...", true);

 status=Loginvalid(method,username,psword); //calling the method for making service call
</code></pre>

<p>But, progress dialog is starting after the response is received from the service.
Please how can i fix this problem..</p>
