Loading and caching images | Glide Library | Android

Поделиться
HTML-код
  • Опубликовано: 31 июл 2024
  • This is an easy video about loading and caching images using a library called Glide by bumptech.
    ⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! www.kite.com/get-kite/?...
    FREE $100 credit @Digital Ocean: m.do.co/c/3208f08b3324
    Patreon: / trulymittal
    Subscribe: ruclips.net/user/yourstruly2...
    Github(Tutorial): github.com/trulymittal/GlideA...
    Glide(GitHub): github.com/bumptech/glide
    Glide(Docs): bumptech.github.io/glide/
    ---------------
    What I use
    ---------------
    Mouse: amzn.to/2O9RJtu
    Keyboard: amzn.to/2qxajCU
    Keyboard 2: amzn.to/2XDWH4X
    Monitor: amzn.to/2pDg7dH
    Processor: amzn.to/347WWIb
    RAM: amzn.to/2QEkUqw
    Graphics: amzn.to/33aBrF4
    Microphone: amzn.to/2DabdI9
    #yoursTruly #glide #images #java #programming #tutorial #howto #glide-library

Комментарии • 61

  • @arendrasaicharan4742
    @arendrasaicharan4742 3 года назад

    We can't go back without subscribing. Great content.

  • @mint-uo9qd
    @mint-uo9qd 2 года назад +1

    What a clean and precise video. Subbed

  • @technicalskillz
    @technicalskillz 4 года назад

    how we can use Gif pic as aplaceholder???

  • @idknejejek
    @idknejejek 4 года назад +2

    Thanks, this helped me a lot.

    • @mafiacodes
      @mafiacodes  4 года назад

      Subscribe like share😊

  • @justPlayer322
    @justPlayer322 4 года назад +1

    Thank you so much :)

  • @kengaming8420
    @kengaming8420 2 года назад

    Sir i have like 130+ images in 1 activity and if all the images are loaded it will start laggy i also try compressing the and image and reduce its still the same is there a tips?
    I am using sketchware

  • @aayushtheapple
    @aayushtheapple 3 года назад

    what about API gives us JSON object ?
    Please make video about this ! [ when we use volley and Glide to load images]
    Thanks in advance :)

  • @TheSupercarDiaries
    @TheSupercarDiaries 4 года назад +4

    perfect, the caching work. 22-04-2020

    • @mafiacodes
      @mafiacodes  4 года назад +1

      Subscribe like share

    • @jayantjadhav9566
      @jayantjadhav9566 3 года назад

      Hi, I have fetched images from api and loaded into the imageview(which is in recycler view). I want to store images in cache so that i can view them later without using internet. how can i do that?

  • @lazymacs2823
    @lazymacs2823 4 года назад +1

    How can I convert the image into bitmap object? I need to use it to extract text using firebase ml kit.

  • @johnpaul8888
    @johnpaul8888 3 года назад

    hi, I'm using Glide to get images of the music covers, but it is very slow, these cache functions that you show in the video don't work here. Do you have any other tips?

    • @mafiacodes
      @mafiacodes  3 года назад

      I am not sure why they are not working, and I don't get why cache does not work?

  • @feuerherz007
    @feuerherz007 Год назад

    What if the url is always the same like 1.jpg but that image changes from times

  • @guidobertelli7337
    @guidobertelli7337 Год назад +1

    Hello my friend, great video but I need to step it up a bit.
    I'm creating pdfs with my app and the only problem that I'm having is inserting images in the documents because I have only access to them through url addresses.
    So my question is how do I safely obtain a bitmap to put in the pdf document from the URL address?
    I feel like the problem is that the generation of the bitmap from the url is slower than the creation of the pdf and this lead to a crash. So how do I obtain a bitmap (and how do I check it in the code that that bitmap exists (maybe a while loop) before than creating the pdf with the bitmab in it.
    Thanks in advance for your help and god bless you

  • @jivanmainali1742
    @jivanmainali1742 4 года назад +1

    Sir but I was looking for video In which if you restart activity it shows a same photo even if there is no network that of website in freebase project

    • @elpoetaanonimo849
      @elpoetaanonimo849 4 года назад

      Jivan Mainali m2 bro!

    • @oppusg
      @oppusg 4 года назад +1

      this does that for me. i disconnect my emulator from internet and image still loads up

  • @deepeshkumar1704
    @deepeshkumar1704 Год назад

    I have local uri , should i have better to caching to load faster, because its little slow to make tab smoother??

    • @mafiacodes
      @mafiacodes  Год назад

      check the size of your image...no point caching local uri

  • @marcinbiaecki9731
    @marcinbiaecki9731 3 года назад

    Thank you :)

  • @parikshitraghav7543
    @parikshitraghav7543 4 года назад +2

    thanks sir

  • @mahi-mw4fh
    @mahi-mw4fh 4 месяца назад

    What is glide disk cache??

  • @umangthummar
    @umangthummar 3 года назад

    I am using Picasso library now. Is it possible to reduce the size of image without loosing much quality with Glide?

    • @mafiacodes
      @mafiacodes  3 года назад

      Size is reduced server side

  • @vladrizal4471
    @vladrizal4471 4 года назад

    thank yku

  • @arafatabdualmuntser96
    @arafatabdualmuntser96 3 года назад

    This video is helped me for my project .. thank you , I have question .. How can insert image to firebase in android studio and retrieve the image from the firebase by using glide ??

    • @mafiacodes
      @mafiacodes  3 года назад

      This series will help you: ruclips.net/p/PLdHg5T0SNpN3-dPWdHlgu9lU3JnksBoHc

  • @Info-dj7qs
    @Info-dj7qs 4 года назад +1

    sir i need a perfect way of loading and resizing image from phone can u help me.

    • @mafiacodes
      @mafiacodes  4 года назад +1

      This is the perfect way of loading and resizing images in android application

    • @Info-dj7qs
      @Info-dj7qs 4 года назад +1

      @@mafiacodes thanks sir.

  • @mithuns8410
    @mithuns8410 3 года назад

    I tried picasso but that is not caching images

  • @adityamadbhavi5081
    @adityamadbhavi5081 3 года назад +1

    When I put id of image in the glide.with.load.into()
    It's showing error
    Then I pressed Alt + Enter but there is no import option available
    What can I do ?

  • @breensrobert
    @breensrobert 3 года назад

    what if it's an svg you want to load

  • @chetangirnare5941
    @chetangirnare5941 4 года назад

    Bro I need to load images speedy like Instagram help me bro

  • @omkardedge9499
    @omkardedge9499 3 года назад

    sir image is not loading by glide

    • @mafiacodes
      @mafiacodes  3 года назад +1

      most likely issue with your url,

  • @lawrencecrasta5811
    @lawrencecrasta5811 4 года назад

    Any options in android phone

    • @mafiacodes
      @mafiacodes  4 года назад

      Like what options?

    • @lawrencecrasta5811
      @lawrencecrasta5811 4 года назад

      In totok glidecache file how to open

    • @lawrencecrasta5811
      @lawrencecrasta5811 4 года назад

      Bro one more think o want to ask can you tel me imo deleted voice audio where to get plz help

  • @armaankhan9534
    @armaankhan9534 3 года назад

    It's help in fast video playing in android ?

    • @mafiacodes
      @mafiacodes  3 года назад

      Glide is for images

    • @armaankhan9534
      @armaankhan9534 3 года назад

      @@mafiacodes Any Suggestion for fast video Play Video comes from Server

    • @mafiacodes
      @mafiacodes  3 года назад

      Use exo lib

    • @armaankhan9534
      @armaankhan9534 3 года назад

      @@mafiacodes thanks Sir Can you make video on it exo dependency

  • @jdrich8682
    @jdrich8682 3 года назад

    Hi may i know how to clear disk cache?

    • @mafiacodes
      @mafiacodes  3 года назад

      bumptech.github.io/glide/javadocs/450/com/bumptech/glide/Glide.html#clearDiskCache-- use this link and call clearDiskCache()

    • @jdrich8682
      @jdrich8682 3 года назад

      yoursTRULY Thanks but what means by call on background thread ? Can i create a button for clear disk cache using method clearDiskCache()?

    • @mafiacodes
      @mafiacodes  3 года назад +1

      I hope so yes, never tried u can

    • @jdrich8682
      @jdrich8682 3 года назад +1

      yoursTRULY Tried and working good thanks