Oh, the places you'll go! Cracking Navigation on Android

Oh, the places you'll go! Cracking Navigation on Android

" You’re building your app, you’re out on your way,
Activity to fragment, you’ll add deep links one day.
Notifications, transitions, you pass arguments, too,
Just a messy piece of cake, for a developer like you!
But then the user hits back, or up or away -
What should happen? You’re lost! The road starts to sway!

They talk about launch modes, affinity, activity stack...
We will deep-dive to those,
then learn the new stuff from Jetpack! "

*** Presented at Android Summit, and Andorid NYC meetup, on August 2018.

3142db3adb711e247e371153b5777e04?s=128

Britt Barak

August 16, 2018
Tweet

Transcript

  1. 3.

    @BrittBarak You’re on your own You know what you know

    And you are the DEV that decides where your USER will go! @BrittBarak
  2. 114.

    @BrittBarak 5.1 Navigate from Menu override fun onOptionsItemSelected(item: MenuItem): Boolean

    { return NavigationUI. onNavDestinationSelected(item,navController) }
  3. 115.

    @BrittBarak 5.1 Navigate from Menu override fun onOptionsItemSelected(item: MenuItem): Boolean

    { return NavigationUI. onNavDestinationSelected(item,navController) || super.onOptionsItemSelected(item) }
  4. 129.

    @BrittBarak AndroidManifest.xml <activity android:name=".MainActivity"> <!— . . . . —>

    <nav-graph android:value=“@navigation/nav_graph”/> </activity>
  5. 143.

    @BrittBarak “And will you succeed? Yes! You will, indeed! (98

    an 3/4 percent guaranteed)” DEV, you’ll move fragments! @BrittBarak