Where’s the Import Statement? 75 of 100 Days of…
I made it to through the tutorial, but there’s a key piece of information missing.
You can find a video of this at the bottom of the page and a link to the source code here.
I hit a wall at the end of the tutorial I found for populating a ListView using Firebase.
I started by adding a ListView to the MainActivity. This would be the container for the data pulled from Firebase. Next, I created a class called Person which would represent the details for the ListView.
I referenced the ListView in the MainActivity and copied the code snippet for setting the adapter, but I was missing a key statement.
My code needs the import statement for FirebaseListAdapter objects (click below).
I searched everywhere online, and I found one that popped up in a few tutorials. But it looks like this statement no longer works (click below).
I will look for a new tutorial that doesn’t include this object. This should allow me to draw data from Firebase and display it in the list without running into compiler errors.
Join the mailing list to see updates like this every week!
Coding Fanatic