Find and Fix MEMORY LEAKS with Leak Canary in Android 👀

  Рет қаралды 36,656

Philipp Lackner

Philipp Lackner

Күн бұрын

A memory leak happens when the garbage collector does not free up an object in your app that can't be used anymore. So RAM for that object is wasted.
In this video, you'll learn how you can find such memory leaks in your Android app using Leak Canary and how to fix them afterwards.
Want to become a job-ready Android developer? 🖥
Get my NEW multi-module course here (STILL LIMITED 25% OFF!):
elopage.com/s/...

Пікірлер: 43
@ink.404
@ink.404 2 жыл бұрын
another video on figuring out where the leaks are actually coming from would be very helpful
@Joe-yu9wc
@Joe-yu9wc 2 жыл бұрын
Hi Phillip, do you have a plan to make a course about "Photos feature"(Like iOS Photos)? I think there are a lot of points that can learn from. Like gesture, zoom, animation, recyclerView, various layout handle and how to handle 200k data in list. I think this is more related real dev and will be a very useful course.
@DjangoMx
@DjangoMx 2 жыл бұрын
go ahead bro, you can always ask for help here
@achalbadgujar9519
@achalbadgujar9519 2 жыл бұрын
Thanks Philip for helping the android developers like us to stay updated. Awsome Info
@chuka_obi5167
@chuka_obi5167 2 жыл бұрын
Just got your new course! Very excited to get started learning about multi-module apps and also canvas too!
@BaldingEagle51
@BaldingEagle51 Ай бұрын
Greetings. :) Three things are missing to deliver on the "fix" in the video title. You're not explaining 1. how to go from the issue dump to the fix 2. where to add the fix code 3. you don't write the fix code 3=after doing the steps in the video, the source is left in an unfixed state. I think you need to also fix it to get the rumored certificate. Do you have one?
@devedroy
@devedroy Жыл бұрын
Thankyou so much, this was very helpful in finding one of the issues I literally gave a week of my time on.
@techmarinar
@techmarinar 2 жыл бұрын
Thank you for sharing this very important topic
@yunusemrearslan3696
@yunusemrearslan3696 2 жыл бұрын
your IDE just looks like Xcode. Please sensei stay with us :D
@michaelndiritu6413
@michaelndiritu6413 2 жыл бұрын
Thanks for this great tip,if I have a multi module app do i have to apply for every module?
@relaxtime6556
@relaxtime6556 2 жыл бұрын
Very nice Philp awesome tutorial.
@Alchemist10241
@Alchemist10241 2 жыл бұрын
Well done. - detecting memory leaks in on click ✔
@deepeshkumar1704
@deepeshkumar1704 4 ай бұрын
Then what is the solution, if i have to use MainActivity context in Second Activity (I think this is not a good question but. ) or if any static method/Utils Class method needs context of second activity, and if i back to Main Activity, how to prevent memory leak? pls reply
@m0tivati0n71
@m0tivati0n71 2 жыл бұрын
Brilliant and short explanation
@original_anu
@original_anu 2 жыл бұрын
This is so cool. Thank you ❤️
@nvnkmr1290
@nvnkmr1290 5 ай бұрын
Thanks philip
@MaulikDodiaHollywoodMovieLover
@MaulikDodiaHollywoodMovieLover 2 жыл бұрын
I hoep you will make second part of this video in more depth.
@pranavvyas7218
@pranavvyas7218 2 жыл бұрын
What's the theme you are using ? looks good
@iam-learning6374
@iam-learning6374 2 жыл бұрын
Hi Phillip - could you please create one session on aab... I have learned all android from your channel.... I want to start aab now, please help.
@sschueller
@sschueller 2 жыл бұрын
Awesome, thank you for the tip
@atulkumar-bb7vi
@atulkumar-bb7vi Жыл бұрын
Thanks for this amazing tip..!
@javad0470
@javad0470 2 жыл бұрын
hi buddy , thanks for your video it was great as always I kindly ask you to make tutorial about making custom calendar in jetpack compose. thanks in advance.
@mytubekt
@mytubekt 2 жыл бұрын
Android Profiller can be used too ;)
@joemoe5954
@joemoe5954 2 жыл бұрын
Could you share the android studio theme you are using here?
@finalfantasy996
@finalfantasy996 Жыл бұрын
Settings > Appearence > New Beta UI
@razvanalinbalan4215
@razvanalinbalan4215 2 жыл бұрын
Phillip, thank you for the great content! I checked out your link and I'd buy your course but I'm only interested in the "Building Industry-Level Apps With Multi-Module Architecture" and it seems that it's only available in the bundle. Perhaps you will change your mind about that and make it available on its own as well. Thanks again!
@PhilippLackner
@PhilippLackner 2 жыл бұрын
Hi, that's not correct, you can very well buy it alone :) Here's the link: elopage.com/s/philipplackner/building-industry-level-apps-with-multi-module-architecture/payment?locale=en Just ignore the extra options it offers, scroll completely down and you're good :)
@razvanalinbalan4215
@razvanalinbalan4215 2 жыл бұрын
@@PhilippLackner Ah, got it! Maybe add checks for all of them for better UX, didn't realize the amount was already selected. Thank you!
@razvanalinbalan4215
@razvanalinbalan4215 2 жыл бұрын
@@PhilippLackner Done. I'll come back with a review. :) Thanks!
@Rusliq
@Rusliq Жыл бұрын
@@razvanalinbalan4215 so, do you have a review? :)
@javidsattar281
@javidsattar281 Жыл бұрын
Perfect, Thanks
@mustafaammar551
@mustafaammar551 2 жыл бұрын
very cool video thank you BRO
@ПавелЗубко-й7к
@ПавелЗубко-й7к 2 жыл бұрын
Thx man!!!
@footballCartoon91
@footballCartoon91 2 жыл бұрын
damn when i try to watch android tutorial in kotlin .. there are always keyword or operator that i did not understand what is "::" ? what is "it" ?
@alexandernifanin7366
@alexandernifanin7366 Жыл бұрын
This example doesn't show how to fix real apps. Nobody usually makes such a mistake, but a memory leak appears.
@wernerdittmann7579
@wernerdittmann7579 2 жыл бұрын
Well, if you used the Application context instead of the Activity's context you would not see a memory leak😉.
@PhilippLackner
@PhilippLackner 2 жыл бұрын
Yeah and i could successfully not demonstrate this here in a simple way
@kishorramani007
@kishorramani007 2 жыл бұрын
Hi, How to remove leak canary from release app?
@koweratus
@koweratus 2 жыл бұрын
It wont be in release if you included it with 'debugimplementation' in your gradle file
@datel666
@datel666 2 жыл бұрын
Rly important thing
@vikaspandey7053
@vikaspandey7053 Жыл бұрын
helpful 🐱
@tanishqk7031
@tanishqk7031 2 жыл бұрын
Respect thonas 🖖🖖🖖
Shrink, Optimize and Secure Your App With R8 & ProGuard - Full Guide
18:08
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 76 МЛН
Остановили аттракцион из-за дочки!
00:42
Victoria Portfolio
Рет қаралды 3,3 МЛН
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 45 МЛН
Fix a memory leak in Flutter (#148291)  | Building Flutter
1:06:27
Flutter Bounty Hunters
Рет қаралды 8 М.
Stop Using FirstOrDefault in .NET! | Code Cop #021
12:54
Nick Chapsas
Рет қаралды 58 М.
Memory Leaks on Android
18:36
CodingWithMitch
Рет қаралды 56 М.
How to detect and fix Memory Leaks on Android with Android Studio
8:53
Lukas Lechner - Advanced Android Development
Рет қаралды 37 М.
App Performance Analysis with the Android Studio Profiler
14:48
Philipp Lackner
Рет қаралды 27 М.
NSURLProtocol: How I Stole an App For My Wedding
56:25
Bryce Bostwick
Рет қаралды 21 М.
Trash Talk: The Evolution of Android Garbage Collection
34:52
Google Developer Groups
Рет қаралды 4,5 М.
No, Einstein Didn’t Solve the Biggest Problem in Physics
8:04
Sabine Hossenfelder
Рет қаралды 300 М.
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 76 МЛН