Тёмный

Activities & the Activity Lifecycle - Android Basics 2023 

Philipp Lackner
Подписаться 175 тыс.
Просмотров 117 тыс.
50% 1

In this video I'll explain what Activities are in Android and how the Activity lifecycle works.
⭐ Get certificates for your future job
⭐ 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...
💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:
pl-coding.com/drop-table-ment...
Subscribe to my FREE newsletter for regular Android, Kotlin & Architecture advice!
pl-coding.com/newsletter
Join this channel to get access to perks:
/ @philipplackner
Join my Discord server:
/ discord
Regular programming advice on my Instagram page: / _philipplackner_
Checkout my GitHub: github.com/philipplackner
You like my free content? Here you can buy me a coffee:
www.buymeacoffee.com/philippl...
00:00 - Android Basics Intro
1:17 - What is an Activity?
3:16 - The Activity Lifecycle

Опубликовано:

 

22 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 113   
@Daleon1
@Daleon1 Месяц назад
This is exactly what I have been looking for... an exact breakdown of Android Studio/ Kotlin process. Thanks for taking the time to making this!
@viz_dugz
@viz_dugz Год назад
Super excited for this playlist. As someone who just started Android development, it is super important to know about concepts like Intents, Services, etc. You putting this content out there means a lot.
@xCrawfly
@xCrawfly Год назад
Hi Philipp. This is very well described and simplified for an easy overview-understanding. Thank you for this new playlist, I'll be waiting for the next videos!
@lozano-dev
@lozano-dev Год назад
So glad to see the updated playlist. Thanks Philipp
@sanjaybhatikar
@sanjaybhatikar 10 месяцев назад
I keep returning to these videos and refreshing my knowledge. Thank you!
@hussein9577
@hussein9577 Год назад
thanks for making us better developers Philipp
@jordanray1537
@jordanray1537 Год назад
Like everyone else I'm super excited for this series as a learning android dev. Keep it up!
@DanielyBotelho
@DanielyBotelho Год назад
Woohooo!! Looking forward to this playlist! 👏🏻
@techug2719
@techug2719 5 месяцев назад
You have no idea how long its taken me to understand this using the google documentation, you use an easy and well presented approach to your videos cheers to you my friend!..............keep em comin.
@mircodev
@mircodev Год назад
Nice to see you are updating the videos series now. I think that will help a lot of people.
@emreyigit7671
@emreyigit7671 7 месяцев назад
Successful video as always, I started Android development 3 months ago, I learned a lot thanks to you, thank you.
@andrewvinci8437
@andrewvinci8437 Год назад
Perfect timing. Getting back into Android to finish my capstone project and this playlist will be a good companion along with my books/youtube videos. Good stuff.
@antoniofuller2331
@antoniofuller2331 24 дня назад
Capstone????
@cristianlopes1930
@cristianlopes1930 10 месяцев назад
I am cross mobile developer looking for more understanding regarding native and came across your channel... Thank you very much for sharing this amazing content for free.
@YamamotoKaedehara
@YamamotoKaedehara 2 месяца назад
I was having struggles with this. Thank you for your clear instructions and demonstration!
@kskfernando2945
@kskfernando2945 Год назад
Bro thank you so much, the last fundamental playlist was pretty much deprecated. You dont wanna hear the struggle I went through.😂 Thank you so much again ❤❤
@harshpratapsingh1638
@harshpratapsingh1638 11 месяцев назад
Preparing for my internship, this video helped me a lot in revising
@kissistvan1276
@kissistvan1276 Год назад
I am just so grateful to you for making these fantastic videos. Thank you.
@thecout3170
@thecout3170 10 месяцев назад
This video is pretty good, know I understand the concept completely! Thanks.
@tuhinguha434
@tuhinguha434 2 месяца назад
That last logcat example just clarified everything. Thanks man😮❤
@isarufullazada1075
@isarufullazada1075 Год назад
Looking forward to this playlist!
@mirchm
@mirchm Год назад
I actually work as an android developer and i still watch some basic videos just to watch out for details/tips that i missed when learning the basics.
@neocoretec
@neocoretec 12 дней назад
Bist echt klasse Alter 🔥👏
@Ayor88
@Ayor88 5 месяцев назад
intersting video but to be honest, this informations a pretty clear on the official documentation. What would have been really great is example of what typical actions would be done in each function. Maybe with an example app (like a store, a messaging app or anything usually used for educational purpose)
@rushikesh1203
@rushikesh1203 Год назад
Now i'm totally excited. Please keep going.
@funnyvid7634
@funnyvid7634 8 месяцев назад
Excellent video. It was very clear and easy to understand. Thank you!!!
@vaibhavpatil8297
@vaibhavpatil8297 Год назад
Thanks Philipp for the amazing playlist
@_bhuvaneshwaran123
@_bhuvaneshwaran123 Год назад
Thank you so much sir! I am start to study Android development course in 3month. But till I am confused in basic this playlist is useful for me.🎉🎉
@mahdiporkar236
@mahdiporkar236 Год назад
You're great Philip 👍🏻 Keep going ❤️
@Alchemist10241
@Alchemist10241 Год назад
I'm a pro in android but sometimes you need some refreshers on the basics to reinforce and deepen your knowledge, and this video just was that.
@antoniofuller2331
@antoniofuller2331 24 дня назад
You know any good GitHub repositories for Android dev??
@revengine4830
@revengine4830 Год назад
This was much needed thanks😊
@ossainduka853
@ossainduka853 Год назад
I really needed this refresher
@outtokill7
@outtokill7 Год назад
Hyped for this series too. I have an app in the Play Store but its very basic and my understanding of the Android fundamentals is lacking. A series like this will hopefully fill in the gaps.
@user-km8zb3cj3d
@user-km8zb3cj3d 20 дней назад
What's your app called bro ?
@leo-phiponacci
@leo-phiponacci 7 месяцев назад
I like the fact that you don't want to cover any UI stuffs, because it is continuously changing, thank you for the great playlist
@veceluxa7601
@veceluxa7601 Год назад
How is it that you make videos exactly about what I need and when I need it? Love it
@Marcix456
@Marcix456 Год назад
Nice and short explanation. I've realy liked the analogy to a play. GJ
@leandro.developer
@leandro.developer 3 месяца назад
thanks from brazil....your videos is excelent!
@azamovdev
@azamovdev Год назад
This is very useful content. thank you absolutely perfect
@deja1408
@deja1408 Год назад
Hi Philipp, great idea with this content and playlist. It will be great to review these fundamental topics in new-related manner even though I am not particularly new in Android Dev. Great job as always Philipp, have a nice day bro.
@Nostang3
@Nostang3 Год назад
I would love a video on when to use each state or best practices for them.
@chisomemmanuel6160
@chisomemmanuel6160 Год назад
Yeah i love ❤ your videos and liked the way you made emphasis on 11:56 because I've been in such weird situations whereby Android's operating system can decide to destroy your activity without calling on destroy() method and it made me debug almost all day.. Now, you've talked about saving states mostly in onPause but imagine destroying Viewpager2 and it's adapter in onPause method 😢and recreating it in onResume. I had to make use of Viewmodel to store the created adapter and call it from activity after creating it's object via local variable but it shows with tablayout once and never show again without exception in logcat which is very weird.
@ikerluqup5661
@ikerluqup5661 11 дней назад
awesome thanks
@elangovankr110
@elangovankr110 Год назад
Excited ❤
@nipunshah1373
@nipunshah1373 Год назад
Great initiative + helpful for refresher & interviews +1
@onmoveonmove226
@onmoveonmove226 Год назад
Best 👌 explanation of activities life cycle I have ever seen thank you
@surendramaran
@surendramaran Год назад
Hey Philipp, It's been a month since I got my first client as a freelancer and now I received the payment as well, I specially like to thank you for your help.❤❤
@crushmika9528
@crushmika9528 Год назад
How can I reach out to you
@PhilippLackner
@PhilippLackner Год назад
Congrats!🙌
@sihamptolemee5056
@sihamptolemee5056 4 месяца назад
Thanks❤
@atlas6397
@atlas6397 Год назад
amazing amazing, keep doing it, great ideas
@bunnykek
@bunnykek 3 дня назад
Wow, awesome knowledge
@TheZaurHasanov
@TheZaurHasanov Год назад
Thanks a lot!
@moby__ky
@moby__ky Год назад
Wow great initiative
@thecodingfeast
@thecodingfeast Год назад
Very informative video.😊
@xdiegors
@xdiegors Год назад
Thanks for the content! Which of your courses should I get if I already have knowledge in C# and React but no Android native development?
@NJENGAJUMA
@NJENGAJUMA Год назад
Great guy this one
@peshutanpavri1599
@peshutanpavri1599 4 месяца назад
Incredibly helpful video, perfectly explained, just one question: If it’s a larger app, would it all be inside one activity ?
@hadjsaidaoumer3058
@hadjsaidaoumer3058 4 месяца назад
Thank yoooooooouuuuuuu 🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰
@Dibyendu.M
@Dibyendu.M Год назад
Thanks
@himanshu.acharya
@himanshu.acharya Год назад
I am learning Android development and now my basics are very much clear but when I try to read official documentation it still feels tough Please make a dedicated video on how to actually go through it
@letscode29
@letscode29 Год назад
Hi Phillip , it's love to watch your videos but could you please make a playlist "How to create an app like Uber" with deep explanation
@sijanneupane
@sijanneupane Год назад
lesgooo!
@user-zy2ww7of4s
@user-zy2ww7of4s Месяц назад
Could you plz show me a example for Android App with Dynamic feature module with Clean Arch and jetpack compose and also make a Ui End-to-End Test
@user-yu5jx9ib2d
@user-yu5jx9ib2d 5 месяцев назад
I have fetched some data from db or api and it is stored in view model. Example, in login screen i have fetched user data and stored in loginViewModel. when i move to next screen after login screen. When i try to fetch data from loginviewmodel in next screen it is showing null.
@Alchemist10241
@Alchemist10241 Год назад
if you make a video about services, it would be great
@andrewdunbar828
@andrewdunbar828 11 месяцев назад
Every time I get to somewhere new I'm welcomed back.
@jahangirahmad7698
@jahangirahmad7698 Год назад
Hi, Phillips @Phillips I have learnt a compose from your tutorial. I have a question or I need some suggestions from you. If I want to move from compose to flutter. Is it better to choose flutter instead of compose. I am so confused about choosing one. I shall be waiting for your reply. Thanks in advance
@Mohammad-km6zg
@Mohammad-km6zg 9 месяцев назад
Hi philipp,How do we know to use navigation or to create a new activity?
@mohammedshahbaz623
@mohammedshahbaz623 9 месяцев назад
please make a video on media3 exoplayer in a recycler view.
@YashNagayach
@YashNagayach Год назад
Fragment one would be interesting
@asadullahilyas
@asadullahilyas Год назад
Hey Philipp! Are you sure activity is paused if a dialog is shown? Because as far as I know, if your activity is opening a dialog, then it doesn't pause that activity. Although, when permission request dialogs are shown, they do pause our activity, but that's because those dialogs are opened by Android SDK in another (transparent) activity, since every dialog needs an activity to get displayed. So, our activity is paused because, again, another activity is now on top.
@PhilippLackner
@PhilippLackner Год назад
Yes sorry I was referring to the permission dialogs
@zteve_music
@zteve_music 6 месяцев назад
Is there also something like an application lifecycle or is there only "App is started/created" and then sometimes destroyed?
@BitMavrick
@BitMavrick 11 месяцев назад
Please make video for suspend functions and how it works
@AdityaEditzYT
@AdityaEditzYT Год назад
Thanks for this playlist and don't make this playlist for compose plz and make some projects plz sir ❤❤
@crushmika9528
@crushmika9528 Год назад
💕
@TheBlackManMythLegend
@TheBlackManMythLegend Год назад
5yr android developer my advice to guys doing that READ THE DOCUMENTATION GUYS and work in professional companies to ingrain the concepts ( like ci/cd units tests. and all theory necessary like activity and stuff. And ... RTFM but it's also good to have the feedback from other guys like PLack. of course but don't forget to go to the source yourself.
@slayerofall149
@slayerofall149 Год назад
i would like to learn Android development, should is jetpack compose and these videos the same? Sorry for the question, but it's a little bit confusing, a lot of tools around android
@Wyllfilm
@Wyllfilm 11 месяцев назад
Hello Phillip after downloading my Android Emulator, it worked only once and since then it stopped working and, what could have gone wrong?
@shahshah-wi9kk
@shahshah-wi9kk Год назад
still xml there, despite compose, what do you think about that? like string, values, manifest.
@PhilippLackner
@PhilippLackner Год назад
All that will be covered
@nastenkaoo
@nastenkaoo Год назад
you look perfect tongiht
@brianquigley1940
@brianquigley1940 2 месяца назад
Configuration change (rotating screen) "destroys" the app, so it "recreates" the app... thus, the official Google diagram is incomplete... where's the arrow pointing back up to onCreate? Isn't this where "bundle" is passed with the old "state" of the app? (before the config change)
@PhilippLackner
@PhilippLackner 2 месяца назад
The app isn't recreated, just the activity. The process remains. The activity can be destroyed for many reasons, and then the graph starts at the start again which is probably why they've left it out
@brianquigley1940
@brianquigley1940 2 месяца назад
@@PhilippLackner Thanks for responding. I meant activity. (Still getting used to the concepts.) So, in essence I was right, except that the arrow should go from Activity Shutdown back up to Activity Launched for every configuration change (e.g. screen rotation). What threw me completely when I first encountered the Activity lifecycle was "Activity Running". What was it doing? This may seem obvious to experts, but it took me ages to realize that "Running" actually meant "a wait loop checking for something to happen" (i.e. event "listening"). All else follows... namely, all code serves to respond to an event, usually user input (or some other event like a notification from an external service). In any case, thanks for the videos. The more I watch, the more I understand. 🙂👍
@sleepilyawaken
@sleepilyawaken Год назад
Hi Philipp, I'd like to know if is it possible to find a job as entry-level developer after this course or not?
@PhilippLackner
@PhilippLackner Год назад
No you gotta be able to build basic apps
@KingFuYouTube
@KingFuYouTube Год назад
You missed screen rotation which would also call onDestroy(). Also configuration changes.
@PhilippLackner
@PhilippLackner Год назад
I mentioned that
@KingFuYouTube
@KingFuYouTube Год назад
​@@PhilippLackneroh nvm. I wish you would have also demonstrated that. 😅
@PhilippLackner
@PhilippLackner Год назад
@@KingFuRU-vid as I said, comes in a later video :)
@AkimboFennec
@AkimboFennec Год назад
My log cat does not show these functions. Why is that?
@user-nz5cf4xn1m
@user-nz5cf4xn1m 4 месяца назад
so confusing, i cant even create override or super, it gets highlighted and says "Modifier 'override' is not applicable to 'top level function'", "No supertypes are accessible in this context"
@Sandra__31m6
@Sandra__31m6 4 дня назад
What's on the horizon? Exclusive interview with Binance's CEO reveals future insights
@abada-s
@abada-s Год назад
why do we save data in onPuase not onStop
@PhilippLackner
@PhilippLackner Год назад
onStop is not guaranteed to be called, while onPause is
@ananddangwal8424
@ananddangwal8424 Год назад
I am confused between which Android course of yours I should learn in 2023 : Android basic-2023 or Android fundamentals for beginners 2020.
@PhilippLackner
@PhilippLackner Год назад
This one is more up to date
@ananddangwal8424
@ananddangwal8424 Год назад
​@@PhilippLacknerI already completed half of the Android fundamentals for beginners 2020 but I will take this course from now onwards. Thanks 👍
@jackcsk
@jackcsk Год назад
When you override onPause() and onStop(), it’s better to leave the super class function (super.onPause()) as the last line instead of first. That’s because you have to ensure your child activity/fragment handling is done, and the onPause() / onStop() from super class is not causing any unexpected effect on your child dependent usages (e.g. a referencing variable became nullified)
@Menteri_008
@Menteri_008 11 месяцев назад
Tidak masalah ANDROID GENOSIDA di Uji Coba di Indonesia,.kalau di butuhkan akan di perluas di seluruh negara dunia.
@gower1973
@gower1973 Год назад
Hey Phillip I just started with Android development, but I’m finding that projects seem to be taking up hundreds of MB of disk space even when the project itself only takes a few MB on disk, why am I losing so much disk space? I swapped out the emulator to one that used much less space but it makes no difference, I don’t understand why Android dev uses so much resources for very little development.
@yeasp
@yeasp Год назад
code starts at 9:00 Thank me later
@lisafox9026
@lisafox9026 4 месяца назад
I finally found a lesson with non-Indian pronunciation !!
@samlovescoding
@samlovescoding Год назад
Bro, why is there a constant crackle in the audio. It is extremely annoying. Please update your idea man, it doesnt sound nice.
@pyaesonehan19
@pyaesonehan19 3 месяца назад
@LasradoRohan
@LasradoRohan Год назад
11:55 onSaveInstanceState(🤨)
Далее
Intents & Intent Filters - Android Basics 2023
25:36
Просмотров 65 тыс.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
Просмотров 926 тыс.
I Tried Every AI Coding Assistant
24:50
Просмотров 739 тыс.
Bottom Nav Bar #03 | Material 3 | Jetpack Compose
12:21
Activity Lifecycle in Android
6:20
Просмотров 160 тыс.
What is the Context? - Android Basics 2023
11:22
Просмотров 52 тыс.
AI Learns to Generate Faces
10:03
Просмотров 16 тыс.
Most overpowered way to build mobile apps?
8:33
Просмотров 744 тыс.