denzcoskun / ImageSlideshow

Android image slider.
Apache License 2.0
353 stars 141 forks source link

How to get URL from firebase firestore #90

Open herva2003 opened 1 year ago

herva2003 commented 1 year ago

I'm trying to do this:

        imageList.add(SlideModel(FirebaseUtils().firestore
            .collection("emergencies")
            .document(emergenciesId)
            .collection("imageUrl")
            .get()
            .toString()))

It does not give any error, but it does not show the image on the ImageSlider. How do i resolve it? or is it impossible to do it? @denzcoskun

hammood commented 1 year ago

Firestore queries doesn't work like that i think .. Do the query first and confirm that you are getting what you want from firebase (in your case a string url im assuming), and in onSuccess set that value to a new slidemodel to your imagelist.