Activity Lifecycle in Android

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.พ. 2025
  • Activity is basically a page or a form.It has its own life.
    It passes through various stages
    onCreate,
    onStart
    ,onResume,
    onPause,
    onStop,
    onDesroy
    are the staeges of android activity's lifecycle.
    Check out our courses:
    Java Full Stack and Spring AI - go.telusko.com...
    Coupon: TELUSKO10 (10% Discount)
    DevOps with AWS: From Basics to Mastery : go.telusko.com...
    Coupon: TELUSKO10 (10% Discount)
    Master Java Spring Development : go.telusko.com...
    Coupon: TELUSKO20 (20% Discount)
    For More Queries about Course, WhatsApp or Call: +919008963671
    website : www.telusko.com/
    Instagram : / navinreddyofficial
    Linkedin : / navinreddy20
    TELUSKO Android App : bit.ly/TeluskoApp
    TELUSKO IOS App : apple.co/3SsgmU2
    Discord : / discord

ความคิดเห็น • 126

  • @abhisheksengupta4159
    @abhisheksengupta4159 6 ปีที่แล้ว +37

    When a activity is partially visible, it goes to onPause() only,and then when fully visible it directly calls onResume()... Thats the case where onStop() is not called.

  • @ntigirishari
    @ntigirishari 5 ปีที่แล้ว +13

    You're a good teacher!!!!! :-)

  • @Vamp007
    @Vamp007 4 ปีที่แล้ว +1

    Thanks a lot sir. You explained in a very simple way with beautiful example ...Very helpful

  • @Yuvraj-fv1gv
    @Yuvraj-fv1gv 3 ปีที่แล้ว +1

    Have exam within 2 hours and this video helped me ! Thank you sir⚡

  • @wynnylim5594
    @wynnylim5594 3 ปีที่แล้ว +3

    It's crystal clear! Great example and easy to catch up. Thank you!

  • @phani564
    @phani564 6 ปีที่แล้ว +21

    Short and simple to understand... Please add more Tutorials on Recycler view and latest android updates

  • @vikramdeshmukh1207
    @vikramdeshmukh1207 7 ปีที่แล้ว +2

    Thanks ... I was just one minute into listening this concept & I have realized my conceptual mistake by looking at the board behind.

  • @jaygokhru
    @jaygokhru 4 ปีที่แล้ว

    Thanks a lot sir. Came here after watching 4 other videos still confused, but you explained them very clearly. Also the good old days when we use to think 2 GB RAM is a lot. 😂😂

  • @sahenliyanage3688
    @sahenliyanage3688 5 ปีที่แล้ว +2

    Thanks for the short and sweet explanation!

  • @GuitarreroDaniel
    @GuitarreroDaniel 4 ปีที่แล้ว +1

    Terrific explanation as always, Mr. Navin. Thank you very much :)

  • @riyahabeeba
    @riyahabeeba ปีที่แล้ว

    very good class,thank you sir for making it simple and understandable

  • @jatinkhanna6681
    @jatinkhanna6681 3 ปีที่แล้ว

    Thank you sir for all videos, god bless you

  • @sureshprajapati2797
    @sureshprajapati2797 6 ปีที่แล้ว

    Very nice video easy to understand👍👍

  • @jonaskromwell4464
    @jonaskromwell4464 6 ปีที่แล้ว

    Very clear and concise. Great overview of lifecycle!

  • @Sumit-ri9qi
    @Sumit-ri9qi 7 หลายเดือนก่อน

    AMAZING ! FINE CONTENT

  • @kuntellashanker2497
    @kuntellashanker2497 ปีที่แล้ว

    Superb explanation sir keep on uploading videos

  • @heenamalek6001
    @heenamalek6001 3 ปีที่แล้ว

    Great explanation 👍🏻

  • @explorer2283
    @explorer2283 7 ปีที่แล้ว

    Thank you Sir. I am new to this . but the way u teach is very helpful.

  • @beatbox777master
    @beatbox777master 5 ปีที่แล้ว +2

    Felt like I'm in a game where a global Robot who controls the world talks to me and tells me that I can't defeat it.

  • @motivation8238
    @motivation8238 3 ปีที่แล้ว

    Nicely explained

  • @lokkeshss7024
    @lokkeshss7024 4 ปีที่แล้ว

    awesome brother

  • @deeproy7292
    @deeproy7292 6 ปีที่แล้ว +50

    echo sound

  • @MyBoxer96
    @MyBoxer96 5 ปีที่แล้ว

    This was superb explaination

  • @demir
    @demir 5 ปีที่แล้ว

    Thank you for this video. I understood the issue...

  • @matthiasmuller8847
    @matthiasmuller8847 8 ปีที่แล้ว +12

    More android tutorials please :)!

  • @miteshjain56
    @miteshjain56 7 ปีที่แล้ว

    very nice expalnation ...plz upload more video

  • @robertobaldizon8206
    @robertobaldizon8206 6 ปีที่แล้ว

    Nice tutorial. Thank you very much.

  • @JesusisAlive_33
    @JesusisAlive_33 4 ปีที่แล้ว

    Thanks alot bro

  • @kallathiyanmuthumalai4854
    @kallathiyanmuthumalai4854 5 ปีที่แล้ว

    best exam step by step sir

  • @hamidsiddiqui6452
    @hamidsiddiqui6452 8 ปีที่แล้ว

    thanks for tutorial
    which is best for android beginners sir

  • @BEYONDComfort
    @BEYONDComfort 6 ปีที่แล้ว

    great teacher!

  • @puck2011
    @puck2011 6 ปีที่แล้ว

    Thanks for the video. Would be great if you could stand to the side of the diagram so that it is always visible while you are explaining.

  • @wraithbackup4286
    @wraithbackup4286 7 ปีที่แล้ว

    Very good explanation

  • @SureshKumar-kd3fx
    @SureshKumar-kd3fx 6 ปีที่แล้ว

    Super explanation thank u sor

  • @alvincassar1828
    @alvincassar1828 3 ปีที่แล้ว

    THANK YOU MY INDIAN FRIEND

  • @foodtok6852
    @foodtok6852 8 ปีที่แล้ว +1

    Thanks, It's helping me ! :D

  • @networkmarketingandfun2712
    @networkmarketingandfun2712 5 ปีที่แล้ว

    Thanks

  • @malaak1h
    @malaak1h 7 ปีที่แล้ว

    Thanks sir.. appreciate ur efforts

  • @crayzeegrasshopper
    @crayzeegrasshopper ปีที่แล้ว

    thank you!

  • @rutujagaikwad1586
    @rutujagaikwad1586 4 ปีที่แล้ว

    This was good

  • @atkuriajaykumar3701
    @atkuriajaykumar3701 5 ปีที่แล้ว

    thankyou sir .

  • @cecilmathew3763
    @cecilmathew3763 6 ปีที่แล้ว

    good video thank you

  • @ammaamalraj2513
    @ammaamalraj2513 4 ปีที่แล้ว

    good

  • @2space23
    @2space23 7 ปีที่แล้ว

    Thank you so much

  • @shivamsingh-tx7rc
    @shivamsingh-tx7rc 6 ปีที่แล้ว

    Nice....

  • @SpreadPeaceLove
    @SpreadPeaceLove 5 ปีที่แล้ว

    Thanku sir

  • @harikrishnankn2405
    @harikrishnankn2405 4 ปีที่แล้ว

    annan pwoliallle mass karinkal the kodumkat

  • @hdang1997
    @hdang1997 6 ปีที่แล้ว

    these methods are called. Accepted. My question is "How are these methods called? Who is calling them since there is no main?"

  • @scargomez9437
    @scargomez9437 9 ปีที่แล้ว

    thank you

  • @prashikganer4820
    @prashikganer4820 6 ปีที่แล้ว +5

    Sir, what does that arrow from onStop() to onPause() mean?

  • @bytler4518
    @bytler4518 8 ปีที่แล้ว

    Waiting for more

  • @Sejal.Yadav_88
    @Sejal.Yadav_88 4 ปีที่แล้ว

    thanks !!!!!!!!!!

  • @amtechsolutions6921
    @amtechsolutions6921 3 ปีที่แล้ว

    So he is teaching the aliens to code so they can take over the world... Love his tutorials..

  • @AmmarRai
    @AmmarRai 6 ปีที่แล้ว

    Welcome back "Aliens???" Hain??

  • @ramametkar3276
    @ramametkar3276 2 ปีที่แล้ว

    Hello
    In which Phone or camera you have shoot the video

    • @Telusko
      @Telusko  2 ปีที่แล้ว +1

      Samsung note 2

  • @AjaySingh-yp6sv
    @AjaySingh-yp6sv 5 ปีที่แล้ว

    very good but can you explain in hindi

  • @fordfiveohh
    @fordfiveohh 7 ปีที่แล้ว

    Sounds great. Good explanation. 1 question, just to be sure, when someone would like to call logoff when a user closes the app, would the practice be to override the onDestroy() method, call their sign off method, then call super.onDestroy(), this is what I'm thinking. Is this a good practice?

  • @pinnikaharish5672
    @pinnikaharish5672 2 ปีที่แล้ว

    Do one video for activity life cycle coding

  • @divyangshah99
    @divyangshah99 8 ปีที่แล้ว +4

    u have made an arrow from pause() to resume() , when will that happen ? Also, if we minimize the app and kill it , what are the repucursions?

    • @RakeshSharma-yh1mn
      @RakeshSharma-yh1mn 8 ปีที่แล้ว +13

      When a small activity like whatsapp popup message comes in front of your own activity automatically "onPause()" method will be called and after closing that whatsapp message window automatically "onResume()" method will be called. Remember your activity should not completely covered by any another activity..

    • @yashmirashi2956
      @yashmirashi2956 6 ปีที่แล้ว

      same doubt here!

  • @khadarshaik3087
    @khadarshaik3087 8 ปีที่แล้ว

    Respected sir,
    iam very thnakfull to you sir, this video is so helpful and i want the videos of service,broadcast and content provider ....iam a self learner please upload the explanation with a video
    thanks and regards
    KHADAR VALI

  • @xyz-xr1qc
    @xyz-xr1qc 6 ปีที่แล้ว

    Thankyouu

  • @saranyajkarthi1589
    @saranyajkarthi1589 6 ปีที่แล้ว

    tks

  • @Paint0nBrush
    @Paint0nBrush 8 ปีที่แล้ว

    coolb3ans video bro

  • @niranjanvaity3656
    @niranjanvaity3656 8 ปีที่แล้ว

    Sir can ask a career question ?

  • @LMETFY
    @LMETFY 6 ปีที่แล้ว +1

    good people go back, back ,back!
    bad people minimize!

  • @mayankmaurya8028
    @mayankmaurya8028 8 ปีที่แล้ว

    now fragment had been introduced into android do we need activity now??what are the advantages of activites over fragments?/

  • @Kiaanpatel1512
    @Kiaanpatel1512 6 ปีที่แล้ว

    Please post a video for fragment life cycle

  • @learnfromthisthat4428
    @learnfromthisthat4428 7 ปีที่แล้ว

    Please demo in android studio or app!

  • @nijatullahmansoor4686
    @nijatullahmansoor4686 4 ปีที่แล้ว +1

    sir you did't explain properly between the onResume() and onPause(). in which case it will go back from onPause() to the onResume()
    and how the app killed the process directly by itself

  • @decebaltrandafir
    @decebaltrandafir 8 ปีที่แล้ว

    It is ok to swipe apps from recent app?

  • @pratikthacker
    @pratikthacker 8 ปีที่แล้ว

    I am using Navigation Drawer in my android app,so when i click on the items inside the list it goes to other fragment..
    should i continue with this or i should create a new activity for every click? whihc is better and why??

  • @sandrok14
    @sandrok14 5 ปีที่แล้ว

    Good explanation! But for example I want to save a serialized array, so logically I do it in onDestroy(). So I save it before app closes, no need to serialize it every time (ex. Shared Preferences). But does it mean that if OS frees up memory and calls onCreate() again all my data will be lost?

  • @realfacts4214
    @realfacts4214 5 ปีที่แล้ว

    how to develop an app which share schedule live location in social media apps like WhatsApp

  • @mouraddahmani6663
    @mouraddahmani6663 2 ปีที่แล้ว

    I'm sorry sir but the video's voice is not clear , there is some echo sound

  • @shubhamjagtap5507
    @shubhamjagtap5507 6 ปีที่แล้ว

    when the control goes to onPause() to onResume()...

  • @mangeshdhasade8384
    @mangeshdhasade8384 3 ปีที่แล้ว

    What when we receive a call

  • @ganeshaguru2187
    @ganeshaguru2187 4 ปีที่แล้ว

    Sir in Android studio, None of the tags will show the autocomplete popup, like when I start typing "android:layout_width" no popup appears .Sir, how to clear this problem.

  • @KUNDANKUMAR718
    @KUNDANKUMAR718 9 ปีที่แล้ว

    what about the arrow from pause to resume ? When will that happen ?

    • @mayankmaurya8028
      @mayankmaurya8028 8 ปีที่แล้ว

      when you switch app your app pauses and then when you again come back(your app should not be closed) then that case happens from pause to resume

  • @saimonikapolavarapu690
    @saimonikapolavarapu690 5 ปีที่แล้ว

    sir i undersand what is activity life cycle but waht is activity life cycle with customize toast.

  • @dhananjayaoffline4551
    @dhananjayaoffline4551 5 ปีที่แล้ว

    😍👌✌🏻

  • @mayankmaurya8028
    @mayankmaurya8028 8 ปีที่แล้ว

    how do app which run in background like downloading or listing music make there activities??

  • @sudharsankarra951
    @sudharsankarra951 7 ปีที่แล้ว

    sir i need a practical example for this with coding

  • @smtusharibnesalam8688
    @smtusharibnesalam8688 4 ปีที่แล้ว

    Sir in my android the back button doesn’t close the app rather i can see it in my recent apps.

  • @subashchandru8683
    @subashchandru8683 4 ปีที่แล้ว

    You didnt explain that sir how on pause() is related to on resume()

  • @akshaymukesh9498
    @akshaymukesh9498 6 ปีที่แล้ว

    can you explain the life cycle of an iOS application

  • @alexlau3973
    @alexlau3973 8 ปีที่แล้ว

    6.02 isn't it from onDestroy() to onCreate()?

  • @ledleyquintas3647
    @ledleyquintas3647 5 ปีที่แล้ว

    Hi.....I´ve created an app with many activity , and sometimes when I call one activity it opens two times.....what can be cousing this?...please help me.

  • @BilalBilal-gg7ys
    @BilalBilal-gg7ys 5 ปีที่แล้ว

    Sir fragments ke lifecycle ko activity lifecycle se compare kr ke video bna de ,me Google se kaafi search Kia lakin smj nai rhi

  • @ahsan_khan44
    @ahsan_khan44 5 ปีที่แล้ว

    genius

  • @akhilaunnikrishnan8188
    @akhilaunnikrishnan8188 6 ปีที่แล้ว

    sir ,can you please explain super.bundle in oncreate ()

  • @coderclass1155
    @coderclass1155 3 ปีที่แล้ว

    ❤️

  • @AnkitGupta-cf6mg
    @AnkitGupta-cf6mg 5 ปีที่แล้ว

    Last oncreate() part in last minute video is not clear .

  • @naveenmehra8926
    @naveenmehra8926 5 ปีที่แล้ว

    how to use it

  • @saurabhkanswal7954
    @saurabhkanswal7954 6 ปีที่แล้ว

    Play at 2x speed

  • @sridharchowdary1116
    @sridharchowdary1116 6 ปีที่แล้ว

    if u rotate the screen potrate to landscape .....activity will destroy or stop

  • @dineshm8181
    @dineshm8181 8 ปีที่แล้ว

    what will happen if we go to previous activity whether it calls resume() or restart()?

    • @tellvivk
      @tellvivk 7 ปีที่แล้ว

      It calls onResume()

  • @milindsutar8008
    @milindsutar8008 5 ปีที่แล้ว

    How to kill an app on ,leaving app by pressing home button or recent key.?

  • @SanatanaDharma9999
    @SanatanaDharma9999 6 ปีที่แล้ว

    Sir, my code was not showing error but in the emulator blank screen is displayed
    Can tell me the reason

    • @user-le6ts6ci7h
      @user-le6ts6ci7h 6 ปีที่แล้ว

      Balaram kalva try running on your phone... or try buliding gradle again

  • @090-jellabharath2
    @090-jellabharath2 5 ปีที่แล้ว

    Some what you have to improve somewhat not clear

  • @jamespal8480
    @jamespal8480 6 ปีที่แล้ว

    how to work android activity in application????