Loading and caching images | Glide Library | Android

  Рет қаралды 26,684

Mafia Codes

Mafia Codes

Күн бұрын

Пікірлер: 61
@mint-uo9qd
@mint-uo9qd 3 жыл бұрын
What a clean and precise video. Subbed
@arendrasaicharan4742
@arendrasaicharan4742 3 жыл бұрын
We can't go back without subscribing. Great content.
@TheSupercarDiaries
@TheSupercarDiaries 4 жыл бұрын
perfect, the caching work. 22-04-2020
@mafiacodes
@mafiacodes 4 жыл бұрын
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?
@guidobertelli7337
@guidobertelli7337 Жыл бұрын
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
@idknejejek
@idknejejek 4 жыл бұрын
Thanks, this helped me a lot.
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share😊
@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: kzbin.info/aero/PLdHg5T0SNpN3-dPWdHlgu9lU3JnksBoHc
@parikshitraghav7543
@parikshitraghav7543 4 жыл бұрын
thanks sir
@justPlayer322
@justPlayer322 5 жыл бұрын
Thank you so much :)
@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 :)
@feuerherz007
@feuerherz007 Жыл бұрын
What if the url is always the same like 1.jpg but that image changes from times
@technicalskillz
@technicalskillz 4 жыл бұрын
how we can use Gif pic as aplaceholder???
@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
@jivanmainali1742
@jivanmainali1742 5 жыл бұрын
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 жыл бұрын
this does that for me. i disconnect my emulator from internet and image still loads up
@mahi-mw4fh
@mahi-mw4fh 7 ай бұрын
What is glide disk cache??
@mithuns8410
@mithuns8410 3 жыл бұрын
I tried picasso but that is not caching images
@lazymacs2823
@lazymacs2823 4 жыл бұрын
How can I convert the image into bitmap object? I need to use it to extract text using firebase ml kit.
@mafiacodes
@mafiacodes 4 жыл бұрын
use the bitmapfactory
@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 :)
@adityamadbhavi5081
@adityamadbhavi5081 3 жыл бұрын
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 ?
@085-vaibhavgusain9
@085-vaibhavgusain9 3 жыл бұрын
i am facing the same issue did you find any solution
@adityamadbhavi5081
@adityamadbhavi5081 3 жыл бұрын
@@085-vaibhavgusain9 not yet
@085-vaibhavgusain9
@085-vaibhavgusain9 3 жыл бұрын
@@adityamadbhavi5081 I found it, I can help u
@adityamadbhavi5081
@adityamadbhavi5081 3 жыл бұрын
@@085-vaibhavgusain9 Yes please
@085-vaibhavgusain9
@085-vaibhavgusain9 3 жыл бұрын
@@adityamadbhavi5081 val imageview : ImageView = findViewById(R.id.imageView)
@Info-dj7qs
@Info-dj7qs 4 жыл бұрын
sir i need a perfect way of loading and resizing image from phone can u help me.
@mafiacodes
@mafiacodes 4 жыл бұрын
This is the perfect way of loading and resizing images in android application
@Info-dj7qs
@Info-dj7qs 4 жыл бұрын
@@mafiacodes thanks sir.
@johnpaul8888
@johnpaul8888 4 жыл бұрын
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 4 жыл бұрын
I am not sure why they are not working, and I don't get why cache does not work?
@umangthummar
@umangthummar 4 жыл бұрын
I am using Picasso library now. Is it possible to reduce the size of image without loosing much quality with Glide?
@mafiacodes
@mafiacodes 4 жыл бұрын
Size is reduced server side
@breensrobert
@breensrobert 3 жыл бұрын
what if it's an svg you want to load
@mafiacodes
@mafiacodes 3 жыл бұрын
It should load probably
@omkardedge9499
@omkardedge9499 3 жыл бұрын
sir image is not loading by glide
@mafiacodes
@mafiacodes 3 жыл бұрын
most likely issue with your url,
@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
@vladrizal4471
@vladrizal4471 4 жыл бұрын
thank yku
@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
@chetangirnare5941
@chetangirnare5941 5 жыл бұрын
Bro I need to load images speedy like Instagram help me bro
@jdrich8682
@jdrich8682 4 жыл бұрын
Hi may i know how to clear disk cache?
@mafiacodes
@mafiacodes 4 жыл бұрын
bumptech.github.io/glide/javadocs/450/com/bumptech/glide/Glide.html#clearDiskCache-- use this link and call clearDiskCache()
@jdrich8682
@jdrich8682 4 жыл бұрын
yoursTRULY Thanks but what means by call on background thread ? Can i create a button for clear disk cache using method clearDiskCache()?
@mafiacodes
@mafiacodes 4 жыл бұрын
I hope so yes, never tried u can
@jdrich8682
@jdrich8682 4 жыл бұрын
yoursTRULY Tried and working good thanks
Lottie Animations | animations made simple | Android
9:08
Mafia Codes
Рет қаралды 31 М.
Image Caching with Coil Compose - Everything You Need to Know
21:28
Philipp Lackner
Рет қаралды 18 М.
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47
Двое играют | Наташа и Вова
Рет қаралды 2,6 МЛН
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 19 МЛН
You won't BELIEVE what I just did with TanStack's React Tables!
35:58
Swipe gestures in Recycler View | Android
18:47
Mafia Codes
Рет қаралды 62 М.
6 Design Patterns Every Android Developer Must Know
14:16
Philipp Lackner
Рет қаралды 81 М.
Popup menu inside a RecyclerView
12:28
Mafia Codes
Рет қаралды 20 М.
I Remade YouTube From Scratch Using Just Bash
17:51
icitry
Рет қаралды 25 М.
2021 Android Guide: Caching network data in Android
14:55
The Android Factory
Рет қаралды 7 М.
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47
Двое играют | Наташа и Вова
Рет қаралды 2,6 МЛН