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

Комментарии • 114

  • @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!

  • @xCrawfly
    @xCrawfly Год назад +2

    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!

  • @viz_dugz
    @viz_dugz Год назад +42

    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.

  • @sanjaybhatikar
    @sanjaybhatikar 10 месяцев назад +1

    I keep returning to these videos and refreshing my knowledge. Thank you!

  • @mircodev
    @mircodev Год назад

    Nice to see you are updating the videos series now. I think that will help a lot of people.

  • @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.

  • @jordanray1537
    @jordanray1537 Год назад +1

    Like everyone else I'm super excited for this series as a learning android dev. Keep it up!

  • @lozano-dev
    @lozano-dev Год назад

    So glad to see the updated playlist. Thanks Philipp

  • @cristianlopes1930
    @cristianlopes1930 11 месяцев назад

    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.

  • @DanielyBotelho
    @DanielyBotelho Год назад +2

    Woohooo!! Looking forward to this playlist! 👏🏻

  • @emreyigit7671
    @emreyigit7671 7 месяцев назад

    Successful video as always, I started Android development 3 months ago, I learned a lot thanks to you, thank you.

  • @YamamotoKaedehara
    @YamamotoKaedehara 2 месяца назад

    I was having struggles with this. Thank you for your clear instructions and demonstration!

  • @kskfernando2945
    @kskfernando2945 Год назад +2

    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 ❤❤

  • @hussein9577
    @hussein9577 Год назад +19

    thanks for making us better developers Philipp

  • @Ayor88
    @Ayor88 6 месяцев назад +3

    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)

  • @thecout3170
    @thecout3170 10 месяцев назад

    This video is pretty good, know I understand the concept completely! Thanks.

  • @kissistvan1276
    @kissistvan1276 Год назад +1

    I am just so grateful to you for making these fantastic videos. Thank you.

  • @tuhinguha434
    @tuhinguha434 2 месяца назад

    That last logcat example just clarified everything. Thanks man😮❤

  • @andrewvinci8437
    @andrewvinci8437 Год назад +5

    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.

  • @_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.🎉🎉

  • @funnyvid7634
    @funnyvid7634 8 месяцев назад

    Excellent video. It was very clear and easy to understand. Thank you!!!

  • @harshpratapsingh1638
    @harshpratapsingh1638 Год назад +1

    Preparing for my internship, this video helped me a lot in revising

  • @isarufullazada1075
    @isarufullazada1075 Год назад

    Looking forward to this playlist!

  • @chisomemmanuel6160
    @chisomemmanuel6160 Год назад +1

    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.

  • @rushikesh1203
    @rushikesh1203 Год назад

    Now i'm totally excited. Please keep going.

  • @mirchm
    @mirchm Год назад +2

    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.

  • @deja1408
    @deja1408 Год назад +2

    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.

  • @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

  • @Marcix456
    @Marcix456 Год назад

    Nice and short explanation. I've realy liked the analogy to a play. GJ

  • @neocoretec
    @neocoretec 20 дней назад

    Bist echt klasse Alter 🔥👏

  • @mahdiporkar236
    @mahdiporkar236 Год назад +1

    You're great Philip 👍🏻
    Keep going ❤️

  • @vaibhavpatil8297
    @vaibhavpatil8297 Год назад

    Thanks Philipp for the amazing playlist

  • @veceluxa7601
    @veceluxa7601 Год назад +1

    How is it that you make videos exactly about what I need and when I need it? Love it

  • @Nostang3
    @Nostang3 Год назад +1

    I would love a video on when to use each state or best practices for them.

  • @leandro.developer
    @leandro.developer 3 месяца назад

    thanks from brazil....your videos is excelent!

  • @onmoveonmove226
    @onmoveonmove226 Год назад

    Best 👌 explanation of activities life cycle I have ever seen thank you

  • @revengine4830
    @revengine4830 Год назад

    This was much needed thanks😊

  • @azamovdev
    @azamovdev Год назад

    This is very useful content. thank you absolutely perfect

  • @nipunshah1373
    @nipunshah1373 Год назад

    Great initiative + helpful for refresher & interviews +1

  • @outtokill7
    @outtokill7 Год назад +7

    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.

  • @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?

  • @surendramaran
    @surendramaran Год назад +10

    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.❤❤

  • @ossainduka853
    @ossainduka853 Год назад

    I really needed this refresher

  • @Alchemist10241
    @Alchemist10241 Год назад +8

    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 Месяц назад

      You know any good GitHub repositories for Android dev??

  • @peshutanpavri1599
    @peshutanpavri1599 4 месяца назад

    Incredibly helpful video, perfectly explained, just one question: If it’s a larger app, would it all be inside one activity ?

  • @atlas6397
    @atlas6397 Год назад

    amazing amazing, keep doing it, great ideas

  • @elangovankr110
    @elangovankr110 Год назад

    Excited ❤

  • @bunnykek
    @bunnykek 11 дней назад

    Wow, awesome knowledge

  • @ikerluqup5661
    @ikerluqup5661 19 дней назад

    awesome thanks

  • @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

  • @thecodingfeast
    @thecodingfeast Год назад

    Very informative video.😊

  • @moby__ky
    @moby__ky Год назад

    Wow great initiative

  • @TheZaurHasanov
    @TheZaurHasanov Год назад

    Thanks a lot!

  • @himanshu.acharya
    @himanshu.acharya Год назад +1

    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

  • @NJENGAJUMA
    @NJENGAJUMA Год назад

    Great guy this one

  • @sihamptolemee5056
    @sihamptolemee5056 4 месяца назад

    Thanks❤

  • @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

  • @hadjsaidaoumer3058
    @hadjsaidaoumer3058 4 месяца назад

    Thank yoooooooouuuuuuu 🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰

  • @user-zy2ww7of4s
    @user-zy2ww7of4s 2 месяца назад

    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

  • @Dibyendu.M
    @Dibyendu.M Год назад

    Thanks

  • @Mohammad-km6zg
    @Mohammad-km6zg 9 месяцев назад

    Hi philipp,How do we know to use navigation or to create a new activity?

  • @asadullahilyas
    @asadullahilyas Год назад +9

    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  Год назад +4

      Yes sorry I was referring to the permission dialogs

  • @Alchemist10241
    @Alchemist10241 Год назад

    if you make a video about services, it would be great

  • @sijanneupane
    @sijanneupane Год назад

    lesgooo!

  • @andrewdunbar828
    @andrewdunbar828 11 месяцев назад

    Every time I get to somewhere new I'm welcomed back.

  • @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

  • @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.

  • @AdityaEditzYT
    @AdityaEditzYT Год назад +1

    Thanks for this playlist and don't make this playlist for compose plz and make some projects plz sir ❤❤

  • @mohammedshahbaz623
    @mohammedshahbaz623 9 месяцев назад

    please make a video on media3 exoplayer in a recycler view.

  • @BitMavrick
    @BitMavrick 11 месяцев назад

    Please make video for suspend functions and how it works

  • @zteve_music
    @zteve_music 7 месяцев назад

    Is there also something like an application lifecycle or is there only "App is started/created" and then sometimes destroyed?

  • @ManinderSingh-rs6ix
    @ManinderSingh-rs6ix 4 дня назад

    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...???

  • @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.

  • @YashNagayach
    @YashNagayach Год назад

    Fragment one would be interesting

  • @Wyllfilm
    @Wyllfilm Год назад

    Hello Phillip after downloading my Android Emulator, it worked only once and since then it stopped working and, what could have gone wrong?

  • @crushmika9528
    @crushmika9528 Год назад

    💕

  • @jackcsk
    @jackcsk Год назад +1

    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)

  • @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?

  • @shahshah-wi9kk
    @shahshah-wi9kk Год назад

    still xml there, despite compose, what do you think about that? like string, values, manifest.

  • @ananddangwal8424
    @ananddangwal8424 Год назад +1

    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  Год назад +2

      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 👍

  • @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  Год назад

      @@KingFuRUclips 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"

  • @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. 🙂👍

  • @nastenkaoo
    @nastenkaoo Год назад

    you look perfect tongiht

  • @Sandra__31m6
    @Sandra__31m6 12 дней назад

    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  Год назад +1

      onStop is not guaranteed to be called, while onPause is

  • @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.

  • @lisafox9026
    @lisafox9026 4 месяца назад

    I finally found a lesson with non-Indian pronunciation !!

  • @yeasp
    @yeasp Год назад

    code starts at 9:00 Thank me later

  • @samlovescoding
    @samlovescoding Год назад +1

    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 месяца назад +1

  • @LasradoRohan
    @LasradoRohan Год назад

    11:55 onSaveInstanceState(🤨)