Skip to content Skip to sidebar Skip to footer

Set The Progress Dialog In Base Adapter

This is my list view adapter in which I am sending listview data to server ans sqlite on the button clock asyn task. I want to use a progress dialog but I'm having problem while pa

Solution 1:

The problem is probably with way how to get context. Please change

 new PlannningListViewAdapter(getApplicationContext(),list);

to :

newPlannningListViewAdapter(this,list);

in your Activity

Solution 2:

Please pass the context

new SaveDCR(context).execute(dvr);

Solution 3:

Look at this line.

new SaveDCR().execute(dvr);

here is your problem. Instead of passing context you passing nothing to Constuctor.

change it to

new SaveDCR(context).execute(dvr);

Solution 4:

In your preExecute method instead:

progressDialog = new ProgressDialog(mcontext);

Write this:

progressDialog = new ProgressDialog(context);

Post a Comment for "Set The Progress Dialog In Base Adapter"