Slices and Actions - Everything You Need to Know to Start Using Them in Your App
summary
Shows how to implement Android Slices and Actions by registering a SliceProvider with URI routing in the app manifest, returning template blocks (header, rows, and image grids with per-cell PendingIntents), and calling notifySliceChanged to update the UI. Notes compatibility back to Android 4.4, requires fast synchronous slice responses (no blocking DB/network), supports incremental updates for interactive controls, and demonstrates examples like a one-line header, multi-row lists with actions, and a 10-item image grid using Android Studio 3.x.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 2:07What are Slices
- 4:34Architecture and operation
- 7:08First code steps
- 9:38Components and templates
- 12:09Slices with actions
- 13:34Table items example
- 16:55Multi-row interaction
- 18:06Grid layout and images
- 21:23User feedback
- 24:15Network requests
- 25:19Format and display
- 26:45Current status and access
- 28:17Slices and Actions
- 31:08Google integration
- 32:30Future possibilities
- 33:36Q&A








