Navigating navigation

  Рет қаралды 35,290

Android Developers

Android Developers

Күн бұрын

The Navigation Architecture Component serves as a framework for navigating within your app. Ian covers how Navigation 2.2 and 2.3’s improvements in deep linking, APIs for returning a result, new support for testing Navigation, and integration with dynamic feature modules can make some common tasks and some tricky cases much easier to handle.
Resources:
Navigation documentation → goo.gle/3hl7Uju
Navigation releases → goo.gle/3hluHM9
Check out the 11 Weeks of Android website → goo.gle/30FDT8S
Related Playlists:
Android Jetpack - 11 Weeks of Android playlist → goo.gle/jetpac...
11 Weeks of Android playlist → goo.gle/androi...
Subscribe to Android Developers → goo.gle/Androi...
Speaker:
Ian Lake
#featured #android11 #11WeeksOfAndroid

Пікірлер: 51
@sushantbansode1286
@sushantbansode1286 4 жыл бұрын
I'm facing issue in back transition when I implement shared transition in navigation component
@technics6215
@technics6215 2 жыл бұрын
Great. Can you now make SDK that can work without 50 new APIs, libraries and other stuff that will be deprecated and reinvented again after 3 years? Instead of making something useful at this moment I'm trying to learn another overcomplicated feature where I have to learn new rules and spells.
@marlonlom
@marlonlom 4 жыл бұрын
This is the reason of navigating the 11 weeks of android 11 videos playlist :D
@is0658
@is0658 4 жыл бұрын
When support for saving backstack in bottom nav?
@pxnx
@pxnx 4 жыл бұрын
isn't that supported already?
@plan2t
@plan2t 4 жыл бұрын
I know that supported already, too
@is0658
@is0658 4 жыл бұрын
@@plan2t they didn't? You could setupWithbottomNav but it wouldn't save fragment states and back stack. Ofc it's not hard to implement by yourself but I think it's time to make official support since it's a very common case..
@RhexGomez
@RhexGomez 4 жыл бұрын
Hopefully in the next vid you can discuss some best practices for Nav Arch with Dynamic Feature Module as well.
@hiteshchalise3988
@hiteshchalise3988 4 жыл бұрын
OMG so many good contents... loving it. :)
@SahilTheExplorer
@SahilTheExplorer 4 жыл бұрын
loving this series
@BharadwajGiridhar
@BharadwajGiridhar 4 жыл бұрын
Error can't find current navigation node all the time!
@tashi7160
@tashi7160 4 жыл бұрын
Play at 1.25 speed OR 1.5.
@devhypercoder6772
@devhypercoder6772 4 жыл бұрын
2x speed....
@clublulu399
@clublulu399 4 жыл бұрын
Love these vids. Keep em comin!
@Sigmund225
@Sigmund225 2 жыл бұрын
I wish software developers would learn that just changing user interfaces doesn't mean improving user interfaces. My wife just got a new phone with version 11 and she can't figure out basic navigation on the infernal thing.
@6june87
@6june87 4 жыл бұрын
Great video. By the way, are there any good material about using this framework on multi module projects? Is deep linking the PROPER way of handling this? And, it seems that navigating to the next fragment destroys the former fragment, and recreates it when pressing the back button. But, the viewModel initiated from the fragment seems to be alive. How long does this viewModel survive? Are there anything I can do to preserve data of the viewModel when my device runs out of memory(such as leaving it on the background for a long long time)?
@pxnx
@pxnx 4 жыл бұрын
neat talk Ian👍🏼
@xpopcornx1747
@xpopcornx1747 4 жыл бұрын
Like I said in the what's new in Jetpack video which nobody replied to, setting the result in Navigation is a huge mess. Rarely do you only want to set one property. Usually there is a bunch of variables you want to set when navigating back. Going by the example in the video you would need an observer for each of them and they have no guarantee about what order they will be executed in or at all. When returning from a page with information you obviously want to handle all of the data at the same time, not have an observer trigger for each.
@DarekDeo
@DarekDeo 4 жыл бұрын
You could create 1 data class to pass all the params in it. 1 observable for such result is fine.
@odifek
@odifek 4 жыл бұрын
Just add all the data in a single parcelable data class
@TekEffekt
@TekEffekt 4 жыл бұрын
How would you pass back the result before Navigation? I’m not aware of extras that can be passed to a previous activity.
@6june87
@6june87 4 жыл бұрын
Instead of using the new onActivityResult stuff, will using it via a livedata inside a shared global viewModel (the activity scope stuff) do something similar?
@arnabkundu9410
@arnabkundu9410 4 жыл бұрын
Does the navigation graph support the theme? If yes please tell me how can I enable it. I have multiple themes in my android application. But Now in navigation_graph, I am not getting theme changing opposition as we have in layout. Which should be a straight forward requirement from any client perspective. Thanks in advance. Arnab
@deepuraju5272
@deepuraju5272 4 жыл бұрын
Hi , anyone know how to show badge count on launcher icon of android app? I want to show message count like whatsapp, fb etc. But most of the devices doesn't support the library I got from github. Is there a reliable solution for this? Please help😕
@indiemakerpodcast
@indiemakerpodcast 4 жыл бұрын
You have to create notification to show a batch without any library. I am using firebase push notifications and it automatically show batch on my app
@deepuraju5272
@deepuraju5272 4 жыл бұрын
@@indiemakerpodcast while using notification, it shows the count of notifications. Can we customize that count? And when the notification is cleared or app remove from recents , this count will disappear. Did you get these issues?
@6june87
@6june87 4 жыл бұрын
As far as I know, you can change the value via mCompatBuilder.setNumber(badgeInt). But from android oreo, if the user wipes the notification away, the badge of the launcher icon will vanish. I remember that from oreo, the kind of libraries you found started not to work.
@SaiprasadPrabhu
@SaiprasadPrabhu 4 жыл бұрын
Why is this unlisted ?
@bozenajolantajurewicz496
@bozenajolantajurewicz496 Жыл бұрын
Mon Androïde thenks
@phanpiseth9561
@phanpiseth9561 4 жыл бұрын
Thanks ❤️
@russianentertainmenttv
@russianentertainmenttv 4 жыл бұрын
we want to see the long one like that on the iPhone
@imtiyazhasankhan
@imtiyazhasankhan 4 жыл бұрын
Kindly Add The AppLock 😬 Please.
@zeyadjy7229
@zeyadjy7229 4 жыл бұрын
how to be a pro in android dev?
@PavitraGolchha
@PavitraGolchha 4 жыл бұрын
Join r/mAndroidDev
What's new in Android Jetpack
18:25
Android Developers
Рет қаралды 51 М.
Thinking in Compose
25:27
Android Developers
Рет қаралды 87 М.
Men Vs Women Survive The Wilderness For $500,000
31:48
MrBeast
Рет қаралды 102 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 25 МЛН
Single activity: Why, when, and how (Android Dev Summit '18)
39:16
Android Developers
Рет қаралды 160 М.
Kotlin Coroutines 101 - Android Conference Talks
24:49
Android Developers
Рет қаралды 135 М.
What's new in Compose Design Tools
12:15
Android Developers
Рет қаралды 15 М.
No, Einstein Didn’t Solve the Biggest Problem in Physics
8:04
Sabine Hossenfelder
Рет қаралды 302 М.
Jetpack Compose Navigation for Beginners - Android Studio Tutorial
19:23
Philipp Lackner
Рет қаралды 143 М.
Understand Kotlin Coroutines on Android (Google I/O'19)
37:49
Android Developers
Рет қаралды 174 М.
Troubleshooting app performance issues with System Trace in Android Studio
14:39
NSURLProtocol: How I Stole an App For My Wedding
56:25
Bryce Bostwick
Рет қаралды 21 М.
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 77 М.
Compose for existing apps
22:06
Android Developers
Рет қаралды 26 М.