Skip to content Skip to sidebar Skip to footer

Cannot Resolve Symbol Notifydatasetchanged

I am working with an application where i get records from my azure database and insert it into an array, and the listview must display my array. My error comes when i try to call t

Solution 1:

write

ADAhere.notifyDataSetChanged();

instead of

ADAhere.notifyDatasetChanged();

You wrote small s instead of S

This is more better practice to write this code in onPostExecute instead of writing this is doInBackground

Solution 2:

Your problem is with the way you write the method name notifyDataSetChanged() (you used a small s in set), so it's normal that it does not recognize it

Change this line

ADAhere.notifyDatasetChanged();

with

ADAhere.notifyDataSetChanged();

Solution 3:

You have created BaseAdapter and trying to notify the adapter. Create an ADAhere object as a SimpleAdapter which extends BaseAdapter

Post a Comment for "Cannot Resolve Symbol Notifydatasetchanged"