Android activity vs fragment | Tutorial - 3

  Рет қаралды 20,862

Pushpendra Saini

4 жыл бұрын

Welcome to the #Wepstech produced by Pushpendra Saini. In this video I have explain you the difference in android activity and android fragment. And I have also explain the life cycle of android activity and android fragment. And the main thing is that I have explain all these things with the help of example. So for more details please watch the complete video.
#Android #androidStudio #androidactivity #fragment #androidfragment #android_activity_lifecycle #android_fragment_lifecycle
Full Tutorial - www.wepstech.com/android-activity-and-fragment/

Пікірлер: 18
@HalissonSantos
@HalissonSantos 3 жыл бұрын
So, is better to use fragments instead of activity, because it have more cycles? I really didn't get the point.
@PushpendraSaini
@PushpendraSaini 3 жыл бұрын
Its depends upon the requirement.
@JitendraKumar-gz8bo
@JitendraKumar-gz8bo 3 жыл бұрын
Hello Sir My name is jitendra saini I have a problem in my apps. After login in app User go to homepage activity where a menu navigation drawer is designed with two or more fragments. Now I want the loginid of user from which it is logged in in every fragment. Please guide me
@PushpendraSaini
@PushpendraSaini 3 жыл бұрын
You have to store the login data in the extended of application. You need to go through with application life cycle. Please do a small research and you will get the solution.
@michaelchiz8055
@michaelchiz8055 2 жыл бұрын
It was very informative. Thank you so much
@PushpendraSaini
@PushpendraSaini 2 жыл бұрын
Welcome
@maheshmahadar4780
@maheshmahadar4780 3 жыл бұрын
wow.... what a super fast pc
@PushpendraSaini
@PushpendraSaini 3 жыл бұрын
Thank you, Please subscribe to my channel for more upcoming videos if you did not 😊
@muhammadshahnawaz9953
@muhammadshahnawaz9953 3 жыл бұрын
Well done 👏
@PushpendraSaini
@PushpendraSaini 3 жыл бұрын
Thank you 😁
@helloworld4840
@helloworld4840 4 жыл бұрын
Nice video. Sir tell me one thing that how to open activity from fragment
@PushpendraSaini
@PushpendraSaini 4 жыл бұрын
Intent intent = new Intent(getActivity(), YourActivity.class); startActivity(intent); OR Intent intent = new Intent(getActivity(), YourActivity.class); getActivity().startActivity(intent);
@helloworld4840
@helloworld4840 4 жыл бұрын
Sir,I have created navigation drawer with fragments. Now i have to design dashboard UI. So where I have to code Activity_main.xml or home_fragment.xml .
@PushpendraSaini
@PushpendraSaini 4 жыл бұрын
@@helloworld4840 you can code in your fragment. Basically normal programming is good on fragment. Activities we just use for handling the fragment transaction.
@helloworld4840
@helloworld4840 4 жыл бұрын
@@PushpendraSaini so i have to code in home_fragment for dashboard UI design.
@PushpendraSaini
@PushpendraSaini 4 жыл бұрын
@@helloworld4840 yes
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 118 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 97 МЛН
HOW DID HE WIN? 😱
00:33
Topper Guild
Рет қаралды 48 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 73 МЛН
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 118 МЛН