Retrieve Image In Android App From Firebase Storage | App Development Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025
  • Learn How To Retrieve Or Load Any Image From Firebase Database To Our Android App.
    Android App Development Tutorial -
    Hi Friends,
    In this video, You'll learn "How to Get Image File from Firebase Cloud Storage To Your Android App".
    Also Checkout "How To Upload Image To Firebase Cloud Storage From Android App Using Android Studio" - • Upload Image From Andr...
    Other Helpful Links:
    Login With Google Using Firebase In Android App -
    • Login With Google In A...
    Create Login And Registration Screen In Android Using Firebase -
    • Create Login And Regis...
    Steps To Follow:
    1. Create Android Studio Project.
    2. Connect the Project to Firebase.
    3. Create or use the existing firebase project for this Android Studio Project.
    4. Add Firebase storage from Asistant Window in Android Studio.
    5. Check out google services dependency in Project level Build.gradle file.
    6. Check out firebase storage dependency in App level Build.gradle file.
    7. Please sync the project. Also clean and rebuild the project using the Build menu.
    8. Add Internet permission in AndroidManifest.xml file.
    9. Go to firebase console.
    10. Open the dedicated firebase project.
    11. Go to storage,upload image file under a folder.
    12. Go to rules to give read and write permission for all users in For Firebase Data.
    13. Make sure to download and update google-services.json file into App Folder inside Android Studio project.
    14. Modify the activity_main.xml file and add imageview into it.
    15. Create a reference to the storage file and get the files in the local/ temporary file and after getting the file convert it into bitmap and finally display it into an imageview.
    16. Run your project.
    17. Finally you'll be able to retrieve image from Firebase Storage to your Android App.
    If you like this video. Please LIKE, SUBSCRIBE and SHARE. Thanks!
    Subscribe Here: / @easylearnvideos

ความคิดเห็น • 47

  • @syedsikandaralii
    @syedsikandaralii 4 ปีที่แล้ว +3

    Thanks A Lot! after watching lot of videos i just succeed from your video only ! thanks again

  • @parsauliaann
    @parsauliaann ปีที่แล้ว

    Thank you, it worked

  • @clevercodeverse993
    @clevercodeverse993 2 ปีที่แล้ว

    Thanks a lot ma friend, your vid save me

  • @burakalkan6553
    @burakalkan6553 2 ปีที่แล้ว

    thanks a lot man , you are really good at this .

  • @Pro-wz5mz
    @Pro-wz5mz 2 ปีที่แล้ว

    Thanks a lot .......

  • @creativeteenager9107
    @creativeteenager9107 ปีที่แล้ว

    Excuse me, I want to ask, that's a way to display images according to the image name. I have a project where when uploading data to Firebase, everything refers to one name. Folder names use one name, image names also use the same name. So, what do you do if an account with a different name displays an image that matches the name of that account?

  • @shashidharreddy4845
    @shashidharreddy4845 4 ปีที่แล้ว +2

    Sister please make a video on food delivery app. As u have already made videos on signup/login pages make video like how to upload items and get customer delivery location like swiggy etc....Am really a big fan of yours channel cuz it has detailed information where I didn't find in any online courses..thanx a lot once again.

  • @esfa5679
    @esfa5679 3 ปีที่แล้ว

    Best tutorial video. well done!

  • @addictedalways6786
    @addictedalways6786 2 ปีที่แล้ว

    Thank you

  • @desihiphop4998
    @desihiphop4998 3 ปีที่แล้ว

    Very Nice Explanation !!

  • @satenderkumar-ww2hw
    @satenderkumar-ww2hw 4 ปีที่แล้ว +1

    This video is awesome 😍👌👌

  • @ramirocastrogiovanni8113
    @ramirocastrogiovanni8113 4 ปีที่แล้ว +1

    Thanks a lots. It's very util

  • @vkadiyala1365
    @vkadiyala1365 4 ปีที่แล้ว +7

    Hey..! Could you please make the same on retrieving multiple images from firebase storage.

    • @itnes
      @itnes 3 ปีที่แล้ว

      yes please, so that you show just 1 pic but you have 2 buttons to move right or left into de firebase pics

  • @RealityUncoverTV
    @RealityUncoverTV ปีที่แล้ว

    what is the reason that before twelve o clock in the morning firebase cant load pictures

  • @Ravikant0055
    @Ravikant0055 4 ปีที่แล้ว +2

    Hello mam how can we retrieve the image in recycler view from firebase

  • @huzaifashakeel2197
    @huzaifashakeel2197 4 ปีที่แล้ว

    Thanks for making this video

  • @faizanakram6357
    @faizanakram6357 3 ปีที่แล้ว

    found it very very helpful video

  • @teranthabandara9647
    @teranthabandara9647 ปีที่แล้ว

    in assistant there is no option storage. What can i do

  • @MrIMacro
    @MrIMacro 3 ปีที่แล้ว

    Thanks, can I do the same thing but with google drive not Firebase?

  • @deshpandegaurishekhar6622
    @deshpandegaurishekhar6622 4 ปีที่แล้ว +2

    Thanks! Could you please share how to do the same with realtime database? I need it for my final project. Would be of very great help.

    • @pprraajjwal
      @pprraajjwal 3 ปีที่แล้ว

      Last year zal ka
      Aata ky krtes means job ki study
      If you got job please let me know I'm searching for job in Java. Would be of great help.

  • @rodrickngonyoku5042
    @rodrickngonyoku5042 4 ปีที่แล้ว +1

    Thank you so much.

  • @defifire9980
    @defifire9980 3 ปีที่แล้ว

    It worked, and it's so simple, thx you so much !

  • @anasabualzahab1090
    @anasabualzahab1090 4 ปีที่แล้ว

    hey
    first of all, thanks for the tutorial, you don't know how much u helped me.
    Second, when i retrieved my image, it was rotated 90 degree,
    in the firebase console it is fine, but on the phone it is rotated.
    why ? and how can i solve it ?
    thanks in advance
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    After some testing: i found out that only the image that i captured using my smartphone will be rotated 90 degree after retrieving, while if i retrieved an image i uploaded it from somewhere else like whatsapp , it won't rotate.
    maybe you are wondering what i am doing ?
    i am trying to create an app that i can upload an image and retreive it. but still stuck though at my problem

  • @baselqhawiesh3660
    @baselqhawiesh3660 3 ปีที่แล้ว

    what to do if my path is a random number?
    means its unknown how can i retrieve it ?
    thanks

  • @Normatov
    @Normatov 3 ปีที่แล้ว

    Is the phone memory not used? Is the picture not saved in the phone memory?

    • @EasyLearnVideos
      @EasyLearnVideos  3 ปีที่แล้ว

      Hi Jaloliddin Normatov, on loading resources dynamically, it will display the image using cache.

  • @Harsh_babu_singh
    @Harsh_babu_singh 4 ปีที่แล้ว

    after doing this my app is keep stopping . whenever i opens that activity
    could you plzz helpme out...

  • @pubglittlepro9585
    @pubglittlepro9585 3 ปีที่แล้ว

    not working in my project .
    say image not loaded(toast)

  • @amedh7915
    @amedh7915 4 ปีที่แล้ว

    If I dont delete 'com.google.firebase:firebase-auth:19.3.2' from build gradle, this code not working.
    I need FirebaseAuth because I have User login and logout page.
    Do you know another way for Firebase storage and image ?

  • @devineroseordialez8566
    @devineroseordialez8566 4 ปีที่แล้ว

    My phone doesn't require to download on Android studio

  • @satenderkumar-ww2hw
    @satenderkumar-ww2hw 4 ปีที่แล้ว

    Ma'am I have a firebase dependency version error how to resolve ???
    Plz guide me??
    Your video version is also mismatch plz help me I have been trying 17.2.2 and 17.2.0 and 11.8.0 also but all are givea error

    • @EasyLearnVideos
      @EasyLearnVideos  4 ปีที่แล้ว +1

      Hi Satender Kumar, did you try adding firebase dependency following the tutorial ? please try the same way. Or you can also add firebase storage dependency from file > project structure > library dependency and search for firebase storage, it will also add required firebase storage version for your project. If still you get issue, try changing the versions manually.

    • @satenderkumar-ww2hw
      @satenderkumar-ww2hw 4 ปีที่แล้ว

      @@EasyLearnVideosma'am please tell me the suitable manual version of the firebase dependency

    • @EasyLearnVideos
      @EasyLearnVideos  4 ปีที่แล้ว

      Hi, its difficult to tell any random version because it depends on the project. Without seeing the code I can't help much. Please try creating a new project after writing your app name and location, provide the minimum api 19 Android 4.4, so for this Api the given dependency would work. Hope this helps, thank you!

    • @marius2001
      @marius2001 4 ปีที่แล้ว +1

      @@EasyLearnVideos Hello!
      I have the same issue like Satender Kumar, can you give an email, please, and i will share my code with you to help me? It'a very important for me.
      Thank you!

    • @satenderkumar-ww2hw
      @satenderkumar-ww2hw 4 ปีที่แล้ว +1

      @@marius2001 please if you have any solution please tell me plzzzz miss @Marius

  • @sergio7470
    @sergio7470 4 ปีที่แล้ว +1

    setImageBitmap() is causing my app to crash

    • @EasyLearnVideos
      @EasyLearnVideos  4 ปีที่แล้ว

      The issue may be due to null value instead of image. Please check again if you are getting the image then use setImageBitmap(). stackoverflow.com/questions/46598207/android-setimagebitmap-for-imageview-causes-crash . Thanks for writing to us.

  • @Ravikant0055
    @Ravikant0055 4 ปีที่แล้ว

    Hello mam please make a phone number authentication video