Skip to content
Coding Fanatic
  • Android Development
  • News and Reviews
  • Road2Pro
  • Tutorials
  • Services
  • About

Where’s the Import Statement? 75 of 100 Days of…

  • August 20, 2020August 21, 2020
  • by Richard Clarke

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

Related

Found My Next Move! 74 of 100 days of Code
Back on the Wagon! 76 of 100 Days of Code
Richard Clarke
Richard is currently a developer using Java and Android Studio to build custom applications for Android. Richard tutored in mathematics at Montgomery College, and worked in Information Technology before entering the Software Development industry as a Quality Engineer.
100daysofcode Android AndroidDev Firebase Java software software development

Related articles

Your New Favorite Stopwatch App!…
Two for Two BABY! 7…
…But the App is for…
Play Store Blues – 5…
Top 4 Tips for Android…
No Dice – 3 of…

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Join the mailing list!

This field is required.

Check your inbox or spam folder to confirm your subscription.

Follow me on social media!

  • GitHub
  • YouTube
  • X
  • Instagram
  • LinkedIn
My Tweets

Join the mailing list!

This field is required.

Check your inbox or spam folder to confirm your subscription.

Follow me on social media!

  • X
  • GitHub
  • LinkedIn
  • YouTube

Archives

Theme by Colorlib Powered by WordPress