O'Reilly logo

Android 5 Programming by Example by Kyle Mew

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

Chapter 3. Activities and Fragments

There are very few useful apps that run on just a single screen, or just use a single Activity; and we need a way to switch from one Activity to another and to pass information from one to another. Generally speaking, each new Activity will require its own layout file, but this not always the case; there are times when we want the same layout but with different data and resources. Later in this book, we will be building an app that acts as a tourist guide for some of the world's most famous and visited sites. We will start this journey by building a simple example for just one site that will include an introduction to the CardView widget introduced in Android 5, and learn how to start one Activity from another. ...

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