O'Reilly logo

Android Studio IDE Quick Reference: A Pocket Guide to Android Studio Development by Ted Hagos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Ted Hagos 2019
Ted HagosAndroid Studio IDE Quick Referencehttps://doi.org/10.1007/978-1-4842-4953-6_10

10. Navigation

Ted Hagos1 
(1)
Manila, National Capital Region, Philippines
 
What this chapter covers:
  • A review of navigation in Android

  • Navigation components

Navigation Before Architecture Components

In the early days of Android, if you had a non-trivial app, you almost certainly needed to partition your app across multiple activities. That meant you needed the skill to navigate from one activity to another, and back. So, in those days, you might have written something that looked like the code in Listing 10-1.
class FirstActivity extends AppCompatActivity
  implements View.OnClickListener {
  public void onClick(View v) {
    Intent intent = new Intent(this, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required