Android Tutorial | Navigation Framework with BackStack | CheezyCode (Hindi)

  Рет қаралды 34,911

Cheezy Code

Cheezy Code

2 жыл бұрын

Android Tutorial For Beginners - Learn how to implement navigation framework in Android. Learn how to implement single activity and multiple fragments using navigation jetpack component. Learn what is NavHost, Fragment Container View, Navigation Graph in Android using this simple example. Learn what is backstack in Android with example. Learn step by step - how to create a fully functional android app with simple example in Hindi.
Topics covered -
1. Navigation Framework Introduction
2. What is NavHost, NavGraph? Navigation Component Tutorial
3. Learn how to define actions in navigation
4. Navigation Controller using findNavController and navigate method.
5. Learn BackStack in Android with example.
Notes App Playlist -
• Android Notes App with...
Notes App Express API Playlist -
• Express JS Tutorial Fo...
Complete Dependency Injection Playlist Link -
• Dagger 2 - Dependency ...
Complete Android Architecture Components Playlist -
• Android Architecture C...
Beginner series in Android Playlist (Hindi) -
• Android Tutorials Step...
Kotlin Beginners Tutorial Series -
• Kotlin Beginner Tutori...
For more info - visit the below link
www.cheezycode.com
Source Code -
github.com/CheezyCode/YetAnot...
We are social. Follow us at -
Facebook - / cheezycode
Twitter - / cheezycode
Instagram - / cheezycode

Пікірлер: 96
@shivagiri7406
@shivagiri7406 Жыл бұрын
Excellent video. Excellent Animations for explanation. Clean and neat. This is how you do a tutorial. Thank you Cheezy Code.
@RavindraThoriya
@RavindraThoriya 2 жыл бұрын
Simple and sweet👌 Keep it up👍🏻 Can't wait for the next video, deep dive in the navigation framework
@CheezyCode
@CheezyCode 2 жыл бұрын
Thank you Ravindra
@madhurivaghasana2820
@madhurivaghasana2820 Жыл бұрын
thanks to share this video it helped me to solved my navhost error
@raghu1077
@raghu1077 2 жыл бұрын
Thank you for the timely upload.
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks Raghu
@ashokvlogs2024
@ashokvlogs2024 2 жыл бұрын
Hiii sir very very..........100. Thanks so much....apka explain krne ka tarika bahut achchha h...
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks Ashok
@md.ashrafulalam3368
@md.ashrafulalam3368 2 жыл бұрын
Thank you for excellent explanation ❤️, waiting for next video...
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks Ashraful
@ubaid25
@ubaid25 2 жыл бұрын
Excellent well explained thank you so much
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks Ubaid
@sanyamgoyal4878
@sanyamgoyal4878 2 жыл бұрын
Simple, Short yet most powerful resources, probably the best channel for Android Resources🔥🔥🔥🔥
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks Sanyam
@ORitvikSardhyal
@ORitvikSardhyal Жыл бұрын
Great 👍
@Shubhamkumar-ee8mi
@Shubhamkumar-ee8mi 2 жыл бұрын
Thank You so much sir, for explaining like this, now we are waiting for next video on how to manage backstack to go previous fragment on button click
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks Shubham
@sam-cq1cq
@sam-cq1cq 2 жыл бұрын
Thank you Waiting for your next video
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks Sam
@bhushan2k
@bhushan2k 5 ай бұрын
great explanation. any video of yours which I can refer to learn how to pass data in between?
@rishikeshsingh9946
@rishikeshsingh9946 2 жыл бұрын
awesome sir
@CheezyCode
@CheezyCode 2 жыл бұрын
😊
@apunichjohncena4533
@apunichjohncena4533 Жыл бұрын
Sir, while having more than one Activity and using the MVVM pattern, where should I handle the startActivity() method? in Activity class or ViewModel class? is it good to pass context to ViewModel? Or can I use the navigation component for Activities also?
@sundern990
@sundern990 2 жыл бұрын
Thank you 🙏🏻
@CheezyCode
@CheezyCode 2 жыл бұрын
You’re welcome 😊
@safiullahmuhammad7002
@safiullahmuhammad7002 2 жыл бұрын
Thanks Sir. 😊
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks 👍
@jadoein
@jadoein 2 жыл бұрын
nicely explained👍
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks Sir 😁
@cizor8616
@cizor8616 2 жыл бұрын
Thanks a lot! I want to know the best way to handle a lot of navigations in MVVM pattern. Should we do on Fragment itself or we can somehow do it from viewmodel (Data binding)?
@CheezyCode
@CheezyCode 2 жыл бұрын
Create a navigator class to handle navigation...
@cizor8616
@cizor8616 2 жыл бұрын
@@CheezyCode Thanks a lot, I will do that
@arundattkaushik7386
@arundattkaushik7386 10 ай бұрын
❤❤
@arvindsingh34
@arvindsingh34 2 жыл бұрын
Hi Sir, Thanks a log! for this amazing video. I have a query here regarding back stack in fragment. Suppose we start from loginFragment->mainFragment->noteFragment. If we navigate from noteFragment->loginFragment(might be by logout action) then how will work back stack in this case?. what mainFragament do exist in this case.
@CheezyCode
@CheezyCode 2 жыл бұрын
1. Main fragment pe jaise he pahochege toh backstack khali kar dege. Kyoki main fragment se back button pe login screen nahi aani chaiye 2. Now main se note pe jaate hai aur fir logout karte hai toh sab kuch pop kara denge... kyoki logout kiya hai... Ye cover karege - stay tuned for that. Waise just 2 aur properties hai - popUp and popUpToInclusive
@arvindsingh34
@arvindsingh34 2 жыл бұрын
@@CheezyCode Thank you Sir ji
@ashokvlogs2024
@ashokvlogs2024 2 жыл бұрын
Please sir .....junit test ,mockito and expreso per bhi video bnaiye............
@CheezyCode
@CheezyCode 2 жыл бұрын
Yes bro...bas iske baad saare ye topics he h
@RadhaVaddireddy
@RadhaVaddireddy Жыл бұрын
Looking for jetpack compose navigation, please create videos on jetpack compose
@luckykatariya2900
@luckykatariya2900 2 жыл бұрын
👍
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks Lucky
@gagandaman77
@gagandaman77 2 жыл бұрын
sir ek chiz btao , agar puri app mai only single activity use kre ham navigation graph use krke , or main screen mai after login or signup bottom nav ya drawer hoga to vo kha pe bnega jo activity hai vha pe ya new activity bnani pdegi ya fragment mai plz answer
@CheezyCode
@CheezyCode 2 жыл бұрын
single activity se manage hojayega - 2 navigation graph bhi use kar skte hai - but to keep it simple try with 2 activities
@nabajyotigoswamiNalbari
@nabajyotigoswamiNalbari 10 ай бұрын
Navigation component recreates fragment after navigating from one to another fragment . Is it expected behaviour. I am seeing onCreateView if fragment called even on back stack . Is there any difference between using FragmentContainerView and fragments
@nabajyotigoswamiNalbari
@nabajyotigoswamiNalbari 10 ай бұрын
Instead of adding the new fragment it's replaced, so the fragment view is destroyed, onDestroyView() is called and onCreateView() is called when back is pressed to recreate the view. Not sure why it recreates fragment always rather than replacing as we did with FragmentTrasanction
@rishikeshsingh9946
@rishikeshsingh9946 2 жыл бұрын
sir possible ho to youtube pr live ayeye...kuch random questions puchte hi
@CheezyCode
@CheezyCode 2 жыл бұрын
yes planning both Live and Telegram Group
@rishikeshsingh9946
@rishikeshsingh9946 2 жыл бұрын
@@CheezyCode okay sir thanku sir
@Anythiny
@Anythiny 2 жыл бұрын
@@CheezyCode telgram group for doubt discussion is dire need ty sir
@quantumgaming7
@quantumgaming7 2 жыл бұрын
please use viewbinding instead and you can pass layout file to Fragment constructer will save your onCreateView method
@CheezyCode
@CheezyCode 2 жыл бұрын
yes...mentioned in the video - will be covering it in next video...
@chiragprajapati3989
@chiragprajapati3989 Жыл бұрын
Can we perform add fragment transactions in navigation? Because all transactions are replaced by default in navigation components. Thank you
@CheezyCode
@CheezyCode Жыл бұрын
Any specific requirement? Dialogs can be used with the help of dialog destinations
@chiragprajapati3989
@chiragprajapati3989 Жыл бұрын
@@CheezyCode MainFragment has recyclerview having pagination now suppose I scrolled list so currently on 15th page if I click on item and go to DetailFragment and press back then MainFragment is reloaded due to replace and pagination start with page 1 so If we perform add operation then MainFragment will not be reloaded
@CheezyCode
@CheezyCode Жыл бұрын
Got your problem...let me check
@skjahirhossain5084
@skjahirhossain5084 2 жыл бұрын
Sir i have two question. Mere 3 screen hai. Phale splash screen fir login aur akhir me home. Mai splash screen har bar dikhata hun. Par mai home screen se sabhi jaga jata hun. To mera starting destination kya hoga. Splash screen ya fir home screen
@CheezyCode
@CheezyCode 2 жыл бұрын
Splash
@zeeshanalibtc
@zeeshanalibtc 2 жыл бұрын
sir fragment fast open hotay hin ya activity? mtlb agr hm 10 say 15 pages ki app bna rahay hin to fragment use krin to button click krnay pay fast load ho ga ya activity fast open ho gi?? 2nd hm admob k banner ads lgatay hin to agr ads activity k start main hi load krwa dain to button click krnay pay activity boht slow open hoti ha. because pahlay ads load hota ha and bad main activity ka function. to isay fast krnay k leyah keya krin???????
@CheezyCode
@CheezyCode 2 жыл бұрын
1. No difference. dono same he h. 2. Load the ads asynchronously
@krishnakumar-kh5vo
@krishnakumar-kh5vo 2 жыл бұрын
Got everything sir...but one doubt sir...when we go from one fragment to another fragment backstack is there.... but when we go from one activity to another activity, isn't there any backstack ???
@CheezyCode
@CheezyCode 2 жыл бұрын
Yes..it is there for activity as well...since fragments ke baare mei baat kar rahe h toh fragment ke context mei btaya hai...it is by default feature from the beginning...
@krishnakumar-kh5vo
@krishnakumar-kh5vo 2 жыл бұрын
@@CheezyCode got it, thanks sir...
@sayyedaamerasharali7583
@sayyedaamerasharali7583 2 жыл бұрын
Thanks a lot. I am having the issue with the gradle. I have the gradle file with new syntax i.e its not have " buildscript " instead it has " plugins " only. I have added the class path in the dependencies under buildscript. But while I am running the application it gives me the Error : Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugCompileClasspath'. I searched the solution and applied as well but I am still Stuck here. Please help me with this. Also will you please show how to use the new syntax of the gradle file. Thank a lot again for the best videos. 👍👍
@CheezyCode
@CheezyCode 2 жыл бұрын
Hi Sayyed, Thanks for the update. I have not updated my android studio yet. Need to check this. Found one answer based on you error - stackoverflow.com/a/72588325 - Can you try this one? This is the recent answer
@sayyedaamerasharali7583
@sayyedaamerasharali7583 2 жыл бұрын
@@CheezyCode I am extremely sorry its not the classpath its a spinkit dependency which causing the trouble. I am so sorry for this. 🙏 Can you please tell which JDK version you are using and also when you update the studio please make the video on how to use new gradle syntax. Thank you for the reply and Sorry again for the trouble ....
@CheezyCode
@CheezyCode 2 жыл бұрын
JDK 8
@TechnicalAkshay
@TechnicalAkshay 3 ай бұрын
Sir why xml why not jetpack compose?
@anonymoususer6013
@anonymoususer6013 Жыл бұрын
Hii sir, agr hum 2 navigation graph use kre toh user 1st navgraph (userActionActivity and it have login & singupFragment) se 2nd navgraph(HomeActivity and it hav homeFragment and many more) pe jaa ke baad backbutton press kre toh wah 1st navgraph pr na aaye app homescreen pr hi close ho jaaye ye kaise hoge mujhe smjh nhi aa rha. maine app:popUpTo="" app:popUpToInclusive="" ko try kiya pr work nhi kr rha hai
@rishikeshsingh9946
@rishikeshsingh9946 2 жыл бұрын
apke videos se dagger padh rha is time... thoda tuff lg rha start me ,,,kosis kr rha smgne ki
@CheezyCode
@CheezyCode 2 жыл бұрын
hojayega...jahan samajh na aaye wahi ruk jao - socho aisa kyo bola hai ya kara hai...clear hojayega
@rishikeshsingh9946
@rishikeshsingh9946 2 жыл бұрын
@@CheezyCode thankuuuuuuuuuuuuuuuuuuuuuuu sir
@ChocoByte
@ChocoByte Жыл бұрын
arguements in navigation ui video?
@CheezyCode
@CheezyCode Жыл бұрын
Check the playlist
@AkashJhaDDN
@AkashJhaDDN 2 жыл бұрын
Kavi multiple file select kar ke any file aur selected file ko Recycleview me dikhane vala video v aap bana do
@CheezyCode
@CheezyCode 2 жыл бұрын
Chalo karte hai try...but surely nahi pta kab tak 🤐
@adnankhadim4077
@adnankhadim4077 2 жыл бұрын
React native course b bnay gy ap?
@CheezyCode
@CheezyCode 2 жыл бұрын
shayad nahi
@adnankhadim4077
@adnankhadim4077 2 жыл бұрын
Ok but you are doing great in android I learned alot from your video thanks
@adnankhadim4077
@adnankhadim4077 2 жыл бұрын
@@CheezyCode and do start list of compose
@CheezyCode
@CheezyCode 2 жыл бұрын
yes bro...kuch pending topics hai android ke jo plan kare h - fir Compose he karenge
@rishikeshsingh9946
@rishikeshsingh9946 2 жыл бұрын
@@CheezyCode superb......
@anujkashyap1283
@anujkashyap1283 Жыл бұрын
Agar 3rd fragment se first fragment par jana hai aur previous fragment ko clear kaise krenge please guide me
@CheezyCode
@CheezyCode Жыл бұрын
3rd pe popUpto lagao
@tabishkhan2012
@tabishkhan2012 2 жыл бұрын
While importing project showing this error unable to gradle "This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2020.3.1 or newer." My Android Studio version 4.1.3 I changed plugin version from project structure but same error shown again
@CheezyCode
@CheezyCode 2 жыл бұрын
Update android studio and restart
@tabishkhan2012
@tabishkhan2012 2 жыл бұрын
@@CheezyCode okay sir I ll let you knw about it thanks 👍
@tabishkhan2012
@tabishkhan2012 2 жыл бұрын
@@CheezyCode Now working thanks :)
@skjahirhossain5084
@skjahirhossain5084 2 жыл бұрын
Aur ek sawal hai. Agar mei home fragment se ek aur fragment me jana chata hun jinke andar 4 tab hai to us case me mei kaise navigate karunga
@CheezyCode
@CheezyCode 2 жыл бұрын
Same he logic hoga...you can have nested fragments
@skjahirhossain5084
@skjahirhossain5084 2 жыл бұрын
@@CheezyCode please make a video on nested fragment with tab layout alos. It is my request to you. I haven't find proper documentation of nested navigation with tab layout
@technicalgrowth1335
@technicalgrowth1335 Жыл бұрын
When i go from A is main fragment and jb B fragment to c me jata hu to crash ho jaa rhi h what to do
@CheezyCode
@CheezyCode Жыл бұрын
Check the logcat what is the error
@ABHISHEKGUPTA-cu7ey
@ABHISHEKGUPTA-cu7ey 2 жыл бұрын
Utha ke basta , naap ke rasta..sab koi chala aaya IT me, IT IT IT .....IT me :)
@CheezyCode
@CheezyCode 2 жыл бұрын
haha...yes...mummy bole papa bole har koi hai ab IT mei
@itxblacky2
@itxblacky2 4 ай бұрын
Just One minute think for that students who learn all these things by Paid 😂😂
Jetpack Compose Navigation with Nav Arguments | CheezyCode Hindi
20:35
Navigation Component - Android Studio Tutorial
12:11
Stevdza-San
Рет қаралды 171 М.
Full Guide to Nested Navigation Graphs in Jetpack Compose
12:01
Philipp Lackner
Рет қаралды 58 М.
How to Build a Calculator with Jetpack Compose - Android Studio Tutorial
43:24
6 Design Patterns Every Android Developer Must Know
14:16
Philipp Lackner
Рет қаралды 78 М.
Bottom Navigation with Jetpack Compose
15:29
Stevdza-San
Рет қаралды 49 М.