Skip to Content
Learn Android Studio 4: Efficient Java-Based Android Apps Development
book

Learn Android Studio 4: Efficient Java-Based Android Apps Development

by Ted Hagos
October 2020
Beginner to intermediate content levelBeginner to intermediate
334 pages
6h 2m
English
Apress
Content preview from Learn Android Studio 4: Efficient Java-Based Android Apps Development
© Ted Hagos 2020
T. HagosLearn Android Studio 4https://doi.org/10.1007/978-1-4842-5937-5_10

10. Navigation

Ted Hagos1 
(1)
Manila, National Capital Region, Philippines
 
What we’ll cover:
  • Review of navigation techniques in Android

  • Navigation components from Jetpack

Navigation Before Architecture Components

In the early days of Android development, most nontrivial apps have more than one screen, and the UI was partitioned across multiple Activities. That meant you needed the skill to navigate from one Activity to another and back. So, during those days, you might have written something that looks like the code in Listing 10-1.
class FirstActivity extends AppCompatActivity
  implements View.OnClickListener {
  public void onClick(View v) {
    Intent intent ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Android Studio IDE Quick Reference: A Pocket Guide to Android Studio Development

Android Studio IDE Quick Reference: A Pocket Guide to Android Studio Development

Ted Hagos

Publisher Resources

ISBN: 9781484259375Purchase LinkPublisher Website