Activities, Intents, Tasks, and the Back Stack
summary
Shows runnable Kotlin snippets that start activities with explicit intents and implicit camera intents, uses Butter Knife for click wiring, and demonstrates combining flags with bitwise OR (even quoting the quirky 402000000 example) to trigger FLAG_ACTIVITY_NEW_TASK and FLAG_ACTIVITY_MULTIPLE_TASKS. Explains task affinity, when activities move between tasks, how nav helpers like TaskStackBuilder and NavUtils behave, and how the ActivityManagerService (one of roughly 80 system services) actually orchestrates tasks and back stacks.
AI-written summary · about
chapters (17)
- 0:00Welcome
- 0:42Activities purpose
- 3:08Intents for navigation
- 5:57Tasks and back stack
- 8:26Customizing tasks with flags
- 10:13Bitwise operations with flags
- 12:43Launch mode flags explained
- 15:15Launch modes in manifest
- 17:02Task affinities use cases
- 19:14Task reparenting
- 21:03Clearing back stack
- 23:13Navigation helpers
- 25:00Switching tasks
- 26:22Android task handling
- 29:51Fragments vs activities
- 32:41Further reading
- 34:03Q&A
related talks
53mSimplified Single-Activity Apps Using Simple-Stack
43mOh, the places you’ll go! — Android Navigation: How Does It Work & What’s New
42mRoad to Single Activity
39mSingle activity: Why, when, and how
36mNavigation and the Single Activity: Learnings from a Skeptic
33mAdventures in Navigation
06m10 best practices for moving to a single activity
36mAdventures in Navigation
