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
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.
You're a good teacher!!!!! :-)
Thanks a lot sir. You explained in a very simple way with beautiful example ...Very helpful
Have exam within 2 hours and this video helped me ! Thank you sir⚡
It's crystal clear! Great example and easy to catch up. Thank you!
Short and simple to understand... Please add more Tutorials on Recycler view and latest android updates
Thanks ... I was just one minute into listening this concept & I have realized my conceptual mistake by looking at the board behind.
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. 😂😂
Thanks for the short and sweet explanation!
Terrific explanation as always, Mr. Navin. Thank you very much :)
very good class,thank you sir for making it simple and understandable
Thank you sir for all videos, god bless you
Very nice video easy to understand👍👍
Very clear and concise. Great overview of lifecycle!
AMAZING ! FINE CONTENT
Superb explanation sir keep on uploading videos
Great explanation 👍🏻
Thank you Sir. I am new to this . but the way u teach is very helpful.
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.
Nicely explained
awesome brother
echo sound
Yup
Yup, cool video but audio need fixing.
This was superb explaination
Thank you for this video. I understood the issue...
More android tutorials please :)!
very nice expalnation ...plz upload more video
Nice tutorial. Thank you very much.
Thanks alot bro
best exam step by step sir
thanks for tutorial
which is best for android beginners sir
great teacher!
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.
Very good explanation
Super explanation thank u sor
THANK YOU MY INDIAN FRIEND
Thanks, It's helping me ! :D
Thanks
Thanks sir.. appreciate ur efforts
thank you!
This was good
thankyou sir .
good video thank you
good
Thank you so much
Nice....
Thanku sir
annan pwoliallle mass karinkal the kodumkat
these methods are called. Accepted. My question is "How are these methods called? Who is calling them since there is no main?"
thank you
Sir, what does that arrow from onStop() to onPause() mean?
Waiting for more
thanks !!!!!!!!!!
So he is teaching the aliens to code so they can take over the world... Love his tutorials..
Welcome back "Aliens???" Hain??
😆
Hello
In which Phone or camera you have shoot the video
Samsung note 2
very good but can you explain in hindi
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?
Do one video for activity life cycle coding
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?
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..
same doubt here!
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
Thankyouu
tks
coolb3ans video bro
Sir can ask a career question ?
good people go back, back ,back!
bad people minimize!
now fragment had been introduced into android do we need activity now??what are the advantages of activites over fragments?/
Please post a video for fragment life cycle
Please demo in android studio or app!
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
It is ok to swipe apps from recent app?
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??
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?
how to develop an app which share schedule live location in social media apps like WhatsApp
I'm sorry sir but the video's voice is not clear , there is some echo sound
when the control goes to onPause() to onResume()...
What when we receive a call
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.
what about the arrow from pause to resume ? When will that happen ?
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
sir i undersand what is activity life cycle but waht is activity life cycle with customize toast.
😍👌✌🏻
how do app which run in background like downloading or listing music make there activities??
services
sir i need a practical example for this with coding
Sir in my android the back button doesn’t close the app rather i can see it in my recent apps.
You didnt explain that sir how on pause() is related to on resume()
can you explain the life cycle of an iOS application
6.02 isn't it from onDestroy() to onCreate()?
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.
Sir fragments ke lifecycle ko activity lifecycle se compare kr ke video bna de ,me Google se kaafi search Kia lakin smj nai rhi
genius
sir ,can you please explain super.bundle in oncreate ()
❤️
Last oncreate() part in last minute video is not clear .
how to use it
Play at 2x speed
if u rotate the screen potrate to landscape .....activity will destroy or stop
Not the both
It will changes the state of the activity not to call any of the stop or destroy
what will happen if we go to previous activity whether it calls resume() or restart()?
It calls onResume()
How to kill an app on ,leaving app by pressing home button or recent key.?
Sir, my code was not showing error but in the emulator blank screen is displayed
Can tell me the reason
Balaram kalva try running on your phone... or try buliding gradle again
Some what you have to improve somewhat not clear
how to work android activity in application????