Activities & the Activity Lifecycle - Android Basics 2023
HTML-код
- Опубликовано: 30 июл 2024
- 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
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!
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!
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.
I keep returning to these videos and refreshing my knowledge. Thank you!
Nice to see you are updating the videos series now. I think that will help a lot of people.
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.
Like everyone else I'm super excited for this series as a learning android dev. Keep it up!
So glad to see the updated playlist. Thanks Philipp
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.
Woohooo!! Looking forward to this playlist! 👏🏻
Successful video as always, I started Android development 3 months ago, I learned a lot thanks to you, thank you.
I was having struggles with this. Thank you for your clear instructions and demonstration!
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 ❤❤
thanks for making us better developers Philipp
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)
This video is pretty good, know I understand the concept completely! Thanks.
I am just so grateful to you for making these fantastic videos. Thank you.
That last logcat example just clarified everything. Thanks man😮❤
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.
Capstone????
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.🎉🎉
Excellent video. It was very clear and easy to understand. Thank you!!!
Preparing for my internship, this video helped me a lot in revising
Looking forward to this playlist!
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.
Now i'm totally excited. Please keep going.
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.
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.
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
Nice and short explanation. I've realy liked the analogy to a play. GJ
Bist echt klasse Alter 🔥👏
You're great Philip 👍🏻
Keep going ❤️
Thanks Philipp for the amazing playlist
How is it that you make videos exactly about what I need and when I need it? Love it
I would love a video on when to use each state or best practices for them.
thanks from brazil....your videos is excelent!
Best 👌 explanation of activities life cycle I have ever seen thank you
This was much needed thanks😊
This is very useful content. thank you absolutely perfect
Great initiative + helpful for refresher & interviews +1
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.
What's your app called bro ?
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?
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.❤❤
How can I reach out to you
Congrats!🙌
I really needed this refresher
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.
You know any good GitHub repositories for Android dev??
Incredibly helpful video, perfectly explained, just one question: If it’s a larger app, would it all be inside one activity ?
amazing amazing, keep doing it, great ideas
Excited ❤
Wow, awesome knowledge
awesome thanks
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
Very informative video.😊
Wow great initiative
Thanks a lot!
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
Great guy this one
Thanks❤
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
Thank yoooooooouuuuuuu 🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰
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
Thanks
Hi philipp,How do we know to use navigation or to create a new activity?
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.
Yes sorry I was referring to the permission dialogs
if you make a video about services, it would be great
lesgooo!
Every time I get to somewhere new I'm welcomed back.
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
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.
Thanks for this playlist and don't make this playlist for compose plz and make some projects plz sir ❤❤
please make a video on media3 exoplayer in a recycler view.
Please make video for suspend functions and how it works
Is there also something like an application lifecycle or is there only "App is started/created" and then sometimes destroyed?
currently I am doing android development with kotlin and xml... I m half way in that series of Philipp. should I continue that series and then come to this one OR should I ditch that series and go with this newer series...???
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.
Fragment one would be interesting
Hello Phillip after downloading my Android Emulator, it worked only once and since then it stopped working and, what could have gone wrong?
💕
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)
Hi Philipp, I'd like to know if is it possible to find a job as entry-level developer after this course or not?
No you gotta be able to build basic apps
still xml there, despite compose, what do you think about that? like string, values, manifest.
All that will be covered
I am confused between which Android course of yours I should learn in 2023 : Android basic-2023 or Android fundamentals for beginners 2020.
This one is more up to date
@@PhilippLacknerI already completed half of the Android fundamentals for beginners 2020 but I will take this course from now onwards.
Thanks 👍
You missed screen rotation which would also call onDestroy(). Also configuration changes.
I mentioned that
@@PhilippLackneroh nvm. I wish you would have also demonstrated that. 😅
@@KingFuRUclips as I said, comes in a later video :)
My log cat does not show these functions. Why is that?
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"
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)
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
@@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. 🙂👍
you look perfect tongiht
What's on the horizon? Exclusive interview with Binance's CEO reveals future insights
why do we save data in onPuase not onStop
onStop is not guaranteed to be called, while onPause is
Tidak masalah ANDROID GENOSIDA di Uji Coba di Indonesia,.kalau di butuhkan akan di perluas di seluruh negara dunia.
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.
I finally found a lesson with non-Indian pronunciation !!
code starts at 9:00 Thank me later
Bro, why is there a constant crackle in the audio. It is extremely annoying. Please update your idea man, it doesnt sound nice.
11:55 onSaveInstanceState(🤨)