6-Manage BackStack with popUpTo & popUpToInclusive | Android Navigation Component

  Рет қаралды 9,315

U4Universe

U4Universe

Күн бұрын

In this video, we'll learn how to use popUpTo & popUpToInclusive tags to manage backstack with navigation component.
All the code in the video is on Github, here is the link.
Github Repository Link: github.com/sai...
Check out all of my videos on My Playlists:
/ u4universe
My Contant Info:
➢ Facebook: / saifi369
➢ Instagram: / saifi369
➢ Gmail: chsaif369@gmail.com
My Playlists:
Kotlin Development Tutorials:
➢ Kotlin Beginners Training in Urdu/Hindi | U4Universe
• Kotlin for Beginners &...
My Android Development Playlists:
➢ Dagger2 Tutorials for Beginners in Urdu/Hindi | U4Universe
• Dagger2 Tutorials for ...
➢ Google Maps for Android in Urdu/Hindi | Google Maps SDK for Android for Beginners | U4Universe
• Google Maps for Androi...
➢ Android Data Binding Library Tutorials in Urdu/Hindi for Beginners | Android Apps with JetPack
• Android Data Binding L...
➢ Design Android Layouts for Multiple Screens in Urdu/Hindi | U4Universe
• Design Android Layouts...
➢ Services in Android in Urdu/Hindi Complete
• Android Services in Ur...
➢ Multi Threading in Android in Urdu/Hindi | Asynchronous / Concurrent Programming in Android in Urdu/Hindi
• Android Threads & Serv...
Android Networking & RESTful API/Web Service Connection in Urdu/Hindi | Connect Android App with RESTful API/Web Service
➢ • Android RESTful API/We...
Android ROOM+LIVE DATA+VIEW MODEL+RECYCLER VIEW | Android Architecture Components | Creating Note Taking Application
➢ • Android ROOM+LIVE DATA...
Firebase Authentication for Android in Urdu/Hindi- Beginners Firebase Android Studio Tutorials
➢ • Firebase Authenticatio...
Android Themes & Styles Tutorials | Android App Design for Beginners | U4Universe
➢ • Android Themes & Style...
Firebase Cloud Messaging (FCM) fro Beginners in Urdu/Hindi | Firebase Push Notification for Android | U4Universe
➢ • Firebase Cloud Messagi...
Firebase Cloud Firestore in Urdu/Hindi for Beginners | Firebase Tutorials for Android Studio
➢ • Firebase Cloud Firesto...
➢ Firebase for Android | Backend as a System (BaaS) for Android Complete in Urdu/Hindi:
• Firebase for Android C...
➢ Android Broad Cast Receivers in Urdu/Hindi
• Android Broadcast Rece...
ROOM for SQLite Android | ROOM Persistence Library for Android | Android Architecture Components
➢ • ROOM for SQLite Androi...
➢ Android Note Taking App using Architecture Components
• Developing Android Not...
➢ Android Notifications with Channels & Styles All in Urdu/Hindi | Notifications with Styles
• Android Notifications ...
➢ Retrofit Tutorials for Beginners for Android Complete Tutorials in Urdu/Hindi
• Retrofit Tutorials for...
➢ Android Advance Series in Urdu/Hindi (Fragments API)
• Android Fragments API ...
➢ Android Shared Preferences Complete in Urdu /Hindi:
• Android Shared Prefere...
➢ Android SQLite Database Complete in Urdu/Hindi:
• Android SQLite Databas...
➢ Android RecyclerView Complete in Urdu/Hindi:
• Android Recycler View ...
➢ Android Beginner Series in Urdu/Hindi
• Android Development in...
I’ve started this channel because I love teaching. And also for learning by sharing and teaching the knowledge that I have. I really enjoy teaching programming and Android specially and I love it. So thats why, I’ve started this channel. I learn everything in detail. I search a lot and I mean a lot to get better and full understanding why some thing is happening the way it is. And I teach the same way, I don’t share any knowledge unless I don’t know what and why its happening and I search a lot before making any video. When I think I have detailed knowledge of the topic, then I make video.
So any suggestion or feedback is highly appreciated. Thanks

Пікірлер: 25
@mkc0321
@mkc0321 2 жыл бұрын
thank you very much, very helpful
@Aminkhan-gh3vl
@Aminkhan-gh3vl 2 жыл бұрын
you are great sir
@computerhacks3816
@computerhacks3816 3 жыл бұрын
Thanks A lot brother.
@vinayparmar7361
@vinayparmar7361 2 жыл бұрын
great video man!!
@aviksutar6694
@aviksutar6694 2 жыл бұрын
something very useful
@AhsanAli-vz6mg
@AhsanAli-vz6mg 3 жыл бұрын
Superb
@himangshukalita1534
@himangshukalita1534 3 ай бұрын
At 14:05 leave inclusive=false because inclusive=true removes homeFragment from backstack which causes error in further navigation
@VikramSingh-mi5fo
@VikramSingh-mi5fo 3 ай бұрын
brother how to prevent recreation of previous fragment on back button click of current fragment . when i click on current fragment's back button my previous framgment recreating everry time
@chiragbhatia2002
@chiragbhatia2002 3 ай бұрын
Sir agar mujhe ye feature chaiye ho ki user third stack pe back press kare toh app close ho jaye
@AvinashSaini-d8q
@AvinashSaini-d8q 11 ай бұрын
is there any advantage of inclusive false, why they are not making this default true.
@preetmogga3970
@preetmogga3970 9 ай бұрын
sir how fix, when i click back previous fragment recreate issue
@SAJJADAHMAD-uy3hu
@SAJJADAHMAD-uy3hu 2 жыл бұрын
Assalmualaikum. I have one question. If suppose there is two fragment A and B and we in action tag of both A and B have set the property enterAnim and exitAnim. My question is when we navigate from A to B then both the val;ue of exitAnim of A and enterAnim of B will be applied. How come. As per your project you have applied slide as a value. Then both two slide will ocuur two times. First slide for exiting A and another slide for entering B. How come. I am not able to understand. Pls clear my doubt. You never replied to my comments. Pls reply this time and clear my doubts regarding it.
@hammadbawara
@hammadbawara 3 жыл бұрын
Please keep on uploading.
@a_72_saquibsheikh44
@a_72_saquibsheikh44 3 жыл бұрын
Thank you very much Sir. Very helpful>>> Please keep it up
@leetcodebaby6680
@leetcodebaby6680 2 жыл бұрын
Dude! You're amazing!!!!! Make more videos. Can you make a video on BottomNavigationView with Navigation Component? I have this doubt regarding this that: I have a BottomNavigationView with 4 Fragments: Home Feed Notification Profile Home is the home fragment of my NAV GRAPH. Lets suppose Home has a button and on click of it, it goes to CartFragment. Now i click to Feed by using BottomNavigationView. So now, when i click on home fragment again from BottomNavigation view...i see the CartFragment whereas i want to see the HomeFragment. And it doesn't even show the HomeFragment tab active on the bottomNavigationView, it is like it completely replaces it. I am not able to switch to my original fragment whenever i click on a tab from BottomNavigationView
@sakibsyed7306
@sakibsyed7306 3 жыл бұрын
Great explanation
@anirban_j
@anirban_j 2 жыл бұрын
I feel one thing is wrong when you explain when you add popuptoinclusive true it use the same fragment but I feel it's it's going to create a new fragment and clear the old one
@yogeshbhatt4702
@yogeshbhatt4702 3 жыл бұрын
Very nice explanation bruh ( you just saved my day
@codingwithchef7618
@codingwithchef7618 4 жыл бұрын
Bro make videos on jetpack compose also
@ajitsinghrathore2183
@ajitsinghrathore2183 3 жыл бұрын
I think ki popupto inclusive purani fragment remove karke uska fresh new instance daalta hai , naaki purani use karta hai
@vipsim5884
@vipsim5884 4 жыл бұрын
thank you so much
@sanjaybarfa1302
@sanjaybarfa1302 3 жыл бұрын
👌👌👌👌👌👌❤❤❤❤❤
@AzMahgs
@AzMahgs 3 жыл бұрын
Can you speak English please. I think everyone can profit from it
@kevinchen4544
@kevinchen4544 3 жыл бұрын
I can't follow the languange but the animation explains clearly.
Secret to sawing daughter in half
00:40
Justin Flom
Рет қаралды 33 МЛН
REAL OR CAKE? (Part 9) #shorts
00:23
PANDA BOI
Рет қаралды 81 МЛН
пришла на ДР без подарка // EVA mash
01:25
EVA mash
Рет қаралды 3,3 МЛН
Провальная Акция в Seven Eleven
00:51
Тимур Сидельников
Рет қаралды 2,7 МЛН
Multiple Backstacks on Android (My Experience)
6:53
CodingWithMitch
Рет қаралды 12 М.
Jetpack Compose Navigation with Nav Arguments | CheezyCode Hindi
20:35
Don't Do These Fatal Mistakes With a Multi-Module Architecture
10:19
Philipp Lackner
Рет қаралды 45 М.
Type-Safe Navigation with the OFFICIAL Compose Navigation Library
10:03
Fragments - Part 8, Dissecting Back stack further
8:19
Codetutor
Рет қаралды 16 М.
Secret to sawing daughter in half
00:40
Justin Flom
Рет қаралды 33 МЛН