udacity / ud843-QuakeReport

Discover earthquake activity around the world.
Other
343 stars 1.17k forks source link

updateUi(earthquakes) under 'onLoadFinished' method in EarthquakeActivity.java is not defined ? #106

Closed steven7mwesigwa closed 4 years ago

steven7mwesigwa commented 5 years ago

Where is the definition for updateUi().

pinefoambath commented 4 years ago

[Same problem here. Did you manage to resolve this?]

Update, this fixed it for me

" UPDATE....

there seems to be a line of code right above "updateUi(earthquakes);". That line reads...."mAdapter.addAll(earthquakes);", but it is commented out.

if you un-comment that line and comment out the updateUi line the application will load. It seems to be working fine. I can see earthquake info that is consistent with the site info."

WD80 commented 4 years ago

replace

updateUi(earthquakes);

with

mAdapter.addAll(earthquakes);

As per the course, a few chapters ago.