Fragments - Part 4, Lifecycle & correlation with Activity

preview_player
Показать описание
In this video, we dive deep into the lifecycle of Android fragments and their correlation with activity lifecycle methods. Understanding the fragment lifecycle is crucial for building robust Android applications, especially when dealing with complex UI components and dynamic fragment management. We demonstrate the order of lifecycle method execution and how fragments interact with activities, including scenarios where fragments are added dynamically after the activity has already been created. Whether you’re a beginner or looking to brush up on your Android development skills, this tutorial will provide valuable insights into managing fragments effectively.

Topics Covered:
- Android Activity Lifecycle
- Fragment Lifecycle Methods
- Fragment and Activity Correlation
- Dynamic Fragment Management
- Best Practices for Fragment Lifecycle

Make sure to watch the full video to gain a thorough understanding of these essential Android development concepts.

#AndroidDevelopment #FragmentLifecycle #AndroidTutorial #MobileAppDevelopment #AndroidStudio #Programming #AndroidTips #MobileDevelopment #AndroidUI #TechTutorials

Chapters
0:00 - Introduction to Activity Lifecycle**
0:31 - Understanding Fragment Lifecycle**
1:17 - Correlation Between Activity and Fragment Lifecycles**
3:14 - Dynamic Fragment Addition**
5:23 - Importance of Lifecycle Awareness**
Рекомендации по теме
Комментарии
Автор

For the past 3 years i have been jumping from one android tutorial to another, never seen any explain code the way you do.
I wish I had come across your tutorials early that would have saved much time I wasted looking for good tutorials.
Thank you sir.

sumailaadams
Автор

I love your demonstration apps! You make learning mobile development so exciting.

juliemoore
Автор

I am working as a junior mobile dev and had been struggling with all of these topics of fragment and everything else. I am understanding now so much better all thanks to you. I am really grateful to you.
May God bless you with more knowledge to help us all with such great wisdom. Your explanation is so simple and clear. You know how to go step by step to make others understand the complexity!

kopilkaiser
Автор

brother this is the most simplest and purest tutorial i've ever seen. where wholesome taught theory and some only stick to code you literally showed what's going on. Thank you Sir.

khalidkhan-zlee
Автор

One of the best tutorial on fragment life cycle...thank you sir

samirgawas
Автор

its 2021 still its really good to have complete series on Fragment, Great work

vishwajeetbarve
Автор

I always leave a like just because I think your intro sounds badass.
"My name is... Anil Deshpande."

ricniclas
Автор

one of the best explainer I have ever seen on youtube

Ry
Автор

Well nobody was able to explain the fragment lifecyle better than this..! 💯👏

prageeth
Автор

How were you able to run the fragment in the first video as the activity had started? I'm assuming that you did this by starting the fragment in the Activity's onCreate (creating fragment transction in the onCreate of Activity). I'm asking bcz I couldn't get to see that part of code, nor in the video neither in the github code attached.
Thank you for your videos tho, it really helps sir. Just a request to upload more videos of the current android as some of the things have chaned.

SurajKumar-gcvm
Автор

I enjoy watching your videos. Thank you.

coding-ninja
Автор

That is a wonderful approach to teach life cycles! Brilliant, thanks!

frazbakht
Автор

Hello, thanks for your good tutorial, I created a fragment and an activity and added the fragment to the activity using the method addFragment(). When I rotate the device, my question is that the method detach() is executed for the fragment, again why the fragment life cycle is performed? How does the activity know to display the fragment again in itself? Because I check in the method onCreate() from Activity with a conditional statement that if the savedInstanceState value is equal to null, the method addFragment() will be executed. Thank you for answering my question.

amin.eftekhari
Автор

I have executed the same code but getting fragment before clicking of Button..What may be the Error ??

sainaveenchitturi
Автор

Love it, very simple, very educational

andrechristianto
Автор

Wow sir such a good explanation you give and so less suscribers you have....

i have suscribed but

lesleywilson
Автор

your code is not working..it is executing fragment also without clicking the button..Please check your code

epicvibesboy
Автор

Before implementing any class one has to know about it in dept. That is what I learn here.

aham
Автор

What happens in onDestroyView and onDestroy? what is the difference?

manojkumarkopparapu
Автор

what is meaning of tight coupling and loose coupling

dreamerxyz
join shbcf.ru