Image Caching with Coil Compose - Everything You Need to Know

  Рет қаралды 16,465

Philipp Lackner

Philipp Lackner

Күн бұрын

In this video you'll learn about custom image caching by using Coil Compose.
💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:
pl-coding.com/drop-table-ment...
⭐ Courses with real-life practices
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:
pl-coding.com/premium-courses...
Get my FREE PDF about 20 things you should never do in Jetpack Compose:
pl-coding.com/jetpack-compose...
Follow me on Instagram for insights into my live as an Android developer:
/ _philipplackner_
Get the source code for this video on GitHub:
github.com/philipplackner/Coi...

Пікірлер: 53
@skarloti
@skarloti 9 ай бұрын
I feel like I've become addicted to your channel. You explain well, you write quickly, you have a good presentation technique, the videos are consistent and do not exceed more than half an hour. I know it's required A lot of work because there is preparation before and processing after, and all that you do is completely free.I believe in Google especially after they released their new phone with the extras I expected and promised. Every morning when I turn on the TV, I look for one of your videos first, because it works well for me to start the day.I wish you success in everything you do.
@PhilippLackner
@PhilippLackner 9 ай бұрын
Thanks a lot for the great feedback!!
@adetunjiadams6566
@adetunjiadams6566 7 ай бұрын
​@@PhilippLackner Thank you very much for all this free resource. pls am having issue clicking on the subscribe button to get the pdf (Things not to do in compose)
@gauravgooner
@gauravgooner 8 ай бұрын
Brilliant video Philippe, you solve the day to day things which are eventually required in an app. great one
@mryup6100
@mryup6100 9 ай бұрын
This is exactly what I was looking for! Amazing 👏
@josemanuelfg2409
@josemanuelfg2409 3 ай бұрын
I’ve spent this morning 4 hours, fighting with Coil, (it was beating me), and you, with a simple comment , that for you could be vain, I achived to make my app run. Thanks a lot !!
@bensekyondwa
@bensekyondwa 9 ай бұрын
You never disappoint. Thanks
@matheuskloster8730
@matheuskloster8730 7 ай бұрын
Thanks man, i was struggling trying to load images in composables with only Glide, 4min into your tutorial, i was able to quickly solve my problems
@hacvelikarakus9929
@hacvelikarakus9929 9 ай бұрын
Again a Great tutorilal love from turkey 🇹🇷
@JuanDanielOrnella
@JuanDanielOrnella 5 ай бұрын
Amazing bro, thanks for your videos
@Kmnaseef
@Kmnaseef 3 ай бұрын
Thank you very much bro..
@suvojitpal4875
@suvojitpal4875 9 ай бұрын
Very helpful video
@cliffordadoyo9429
@cliffordadoyo9429 9 ай бұрын
Good explanation
@mustafaammar551
@mustafaammar551 6 ай бұрын
Thank you BRO
@wouchref2501
@wouchref2501 9 ай бұрын
Great video! I also wonder how to preload images into the cache
@imamulhasanrana4431
@imamulhasanrana4431 9 ай бұрын
Hello, Philippe Thanks for the Amazing Tutorial With Very detailed explanation, Could you please make a video about Http response caching using retrofit?❤
@vinaykumarpatel649
@vinaykumarpatel649 5 ай бұрын
This is really cool, coil makes it really easy. I’m interested to know if there is a way to preload images using coil. Thanks for your videos.
@neerajverma9226
@neerajverma9226 6 ай бұрын
Super!!
@AlexanderParphenuyk
@AlexanderParphenuyk 3 ай бұрын
Hello Phillipp, thanks for amazing explanation. May I ask you if you will have a time to create something similar to cover Coil 3 in KMP context. Thank you!
@tch.777
@tch.777 9 ай бұрын
Amazing video, amazing detailed explanation, everything is just amazing, number one channel to learn from, thank you!!!🙏
@andrewizquierdo5944
@andrewizquierdo5944 Ай бұрын
Thanks for the video. Great explanation as always! Curious if it's a common pattern to programattically clear some cache for the user on their behalf, instead of them having to do it themselves. Let's say we are building a social media like app with an activity feed, that user is going to scroll through many posts and might not ever see the same images that they saw last week, so it would be nice if we can somehow clear that cache from last week's on behalf of the user.
@mattn.k
@mattn.k 9 ай бұрын
Bro can you make a video about adding bookmarks & favorites
@kasali310
@kasali310 9 ай бұрын
Great video! I'm wondering how to explain clear the stuff. What is you method to understand things faster ? Could you make a video about that?Big thanks 👍
@PhilippLackner
@PhilippLackner 9 ай бұрын
Planned 👍🏼
@kasali310
@kasali310 9 ай бұрын
@@PhilippLackner so waiting
@dat899719
@dat899719 5 ай бұрын
Can you create example to use custom fetcher
@bharathprakash
@bharathprakash 9 ай бұрын
Could u tell me how we can preload images in coil and store them in disk. Like when the data is always changing or user logged in for the first time, we could notice a performance drop because we should fetch them on scrolling(very bad when user has bad internet connection ) . Is there any way in coil so that we can preload them and save them to disk so that we could improve the performance
@omkarpawar1741
@omkarpawar1741 9 ай бұрын
Hello, Philippe , can you provide a tutorial for loading images in lazycolumn using coil, especially if we fling the list , it lags a lot, earlier glide had pauseAllRequests which helped a lot how can we achieve this using coil
@vikashparajuli
@vikashparajuli 8 ай бұрын
I have a situation where same URL may provide the different images over the time. I need to set header value as a cache key. How can I do it?
@arozendojr
@arozendojr 9 ай бұрын
I would like to see an understanding of compose-ios in Portuguese. It would be a flutter, kotlin for Swift, I didn't quite understand
@gianfigueroa
@gianfigueroa 9 ай бұрын
How long time the disk cache? or never clean disk caching? I need save image to offline mode working with disk caching.
@AldrinHernando
@AldrinHernando 4 ай бұрын
Hey Philipp, images only load from disk if airplane mode is on when closing and restarting app. When phone is connected to internet, and restarting app, image will load from network.... why? Defeats the purpose of image caching... is there a solution to this using coil still ?
@ezzeldin101
@ezzeldin101 9 ай бұрын
Excellent video, Can we use the same library with XML?
@PhilippLackner
@PhilippLackner 9 ай бұрын
yes
@ezzeldin101
@ezzeldin101 9 ай бұрын
@@PhilippLackner Thanks, Philipp
@CryptoCodeZone
@CryptoCodeZone 9 ай бұрын
You can wrap a ByteArray as ByteBuffer and load it
@elyornasrullayev1630
@elyornasrullayev1630 9 ай бұрын
cool
@wondershere2277
@wondershere2277 9 ай бұрын
Hey Philipp, Is Coil more memory effcient and better performable than Glide?
@PhilippLackner
@PhilippLackner 9 ай бұрын
not necessarily more performant, but nicer to use IMO
@alexnovikov1609
@alexnovikov1609 9 ай бұрын
Is it possible to use the same approach to cache the video?
@PhilippLackner
@PhilippLackner 9 ай бұрын
not that easily
@user-eh1fz2hx1y
@user-eh1fz2hx1y 9 ай бұрын
how can I build logic in Android development? My mind is blank when I develop any app on my own without a KZfaq tutorial
@djethrak4567
@djethrak4567 9 ай бұрын
Is this better than glide and why ??
@PhilippLackner
@PhilippLackner 9 ай бұрын
Theres no Glide implementation for compose atm, but yes also for XML I'd prefer coil, since it's a pure kotlin library and therefore more idiomatic to use
@djethrak4567
@djethrak4567 9 ай бұрын
@@PhilippLackner Thanks for the response You are the best
@sora4222
@sora4222 9 ай бұрын
How many people read the picture as being from Piratebay?
@DeceptiveRealities
@DeceptiveRealities 7 ай бұрын
It would be great if it worked. Set memory cache to disabled. Disk to enabled. Always loads from the network. Set both enabled. Loads from network and 2nd time from memory (as expected). Shut down app. Restart app. Loads from network. I'm not the only one to observe this, but the standard response is ".respectCacheHeaders(false)". Well, No S Sherlock. It still does the same thing. I spent a lot of time on this, but the documentation is very poor (how typical). In the end I found that if you have your own Fetcher (I had my own for S3 access) then the disk caching does not work. It only works for the internal Fetcher. No doubt there is some obscure way to get this working but I'm not spending hours trying to look through the code - write the damn documentation!!!!! In the end after much frustration I used an Interceptor and wrote my own disk caching. No doubt a clever chap like Philipp will uncover how to do this with the internal caching. 😄
@AldrinHernando
@AldrinHernando 4 ай бұрын
Same issue here, images only load from disk if airplane mode is on when closing and restarting app. When phone is connected to internet, and restarting app, image will load from network.... why? Defeats the purpose of image caching... is there a solution to this using coil still ?
@dayona2513
@dayona2513 9 ай бұрын
Second comment
@lost-prototype
@lost-prototype 9 ай бұрын
What timing, it's like you read my mind. I've literally been working on this. Do you have any guidance when images are short lived presigned URIs from something like S3 or Google Cloud Storage?
@gofudgeyourselves9024
@gofudgeyourselves9024 9 ай бұрын
ok
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 101 М.
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 38 МЛН
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 12 МЛН
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 12 МЛН
This Is My FAVORITE Error Handling Class
28:57
Philipp Lackner
Рет қаралды 28 М.
How to Build a Camera App With CameraX - Taking Photos
29:35
Philipp Lackner
Рет қаралды 37 М.
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 74 М.
Custom layouts and graphics in Compose
20:25
Android Developers
Рет қаралды 51 М.
Loading Images - everything you need to know - Jetpack Compose #7
10:58
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 38 МЛН