O'Reilly logo

Beginning Android 2 by Mark L. Murphy

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 18

Launching Activities and Subactivities

As you've learned, the theory behind the Android UI architecture is that developers should decompose their application into distinct activities Each activity is implemented as an Activity, and each is reachable via intents, with a “main” activity being the one launched by the Android launcher. For example, a calendar application could have activities for viewing the calendar, viewing a single event, editing an event (including adding a new one), and so forth.

This implies that one of your activities has the means to start up another activity. For example, if someone selects an event from the view-calendar activity, you might want to show the view-event activity for that event. So, you need to ...

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