For the More Curious: Concurrent Documents

If you tried testing the overview screen with CriminalIntent and sharing crime data with other apps, you may have noticed some interesting behavior. When you opt to send a crime report from CriminalIntent, the activity for the app you select from the chooser is added to its own task rather than to CriminalIntent’s task (Figure 23.14).

Figure 23.14  Gmail launched into a separate task

Gmail launched into a separate task

The implicit intent chooser creates a new, separate task for activities launched with the android.intent.action.SEND or android.intent.action.SEND_MULTIPLE actions.

This behavior uses a notion called ...

Get Android Programming: The Big Nerd Ranch Guide, 4th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.