Firebase Storage - Upload and Retrieve Images - Part 6 - RETRIEVE IMAGES - Android Studio Tutorial
In part 6 of the Firebase Storage tutorial, we finally retrieve our images in our RecyclerView activity by creating a DatabaseReference and adding a ValueEventListener to it. We than loop through the DatasnapShot we receive in the onDataChange callback and create our Upload objects by calling getValue on it. We store these Upload objects in a List, pass it to our adapter and then set this adapter on our RecyclerView. We will also handle errors in the onCancelled callback which we for example get, when we have no permission to read from the database. Watch the whole playlist: https://www.youtube.com/playlist?list=PLrnPJCHvNZuB_7nB5QD-4bNg6tpdEUImQ Code for this part: https://gist.github.com/codinginflow/0a68ecb584b48b3a6ed04b9ae1a86d74 ____________________ 💻 Find the BEST programming tutorials on TutHub: https://tuthub.io ⭐ Get my MVVM Caching Course now: https://codinginflow.com/caching ❗ Subscribe to the channel: https://www.youtube.com/c/codinginflo... 📨 Subscribe to the Coding in Flow newsletter: https://codinginflow.com/newsletter ❓ Join our free developer community: https://discord.gg/TSnMvmc 📣 Follow Coding in Flow on other sites: Facebook: https://www.facebook.com/codinginflow Instagram: https://www.instagram.com/codinginflow TikTok: https://www.tiktok.com/@codinginflow Twitter: https://twitter.com/codinginflow Github: https://github.com/codinginflow 💰 Business requests, sponsoring, etc.: [email protected]
Download
0 formatsNo download links available.