Skip to content Skip to sidebar Skip to footer

Progress Dialog Keeps On Displaying

I have written a long code in android and which displays a progress dialog when the restaurant list is loaded into the listview. Now the problem is that its working fine when resta

Solution 1:

Try declaring your ProgressDialog inside the AsyncTask. Instead of as a Activity member variable.

public class Thetask extends AsyncTask<String, Void, Void>
{
     ProgressDialog pg = null;
     String x,y;         
     @Override 
     public void onPreExecute()
     ...

Post a Comment for "Progress Dialog Keeps On Displaying"