Slice Your App: Inside Slices and How to build it
summary
Explains how Slices are implemented as a ContentProvider subclass that must return a template-based Slice within 2 seconds (no blocking network or DB), so apps return a quick placeholder then fetch data async and call notifyChange to update the Slice. Uses Jetpack Slice Builder KTX and integrates with Firebase App Indexing so Search/Assistant can surface Slices. Notes permission-grant flow for requesting app, shows Slice Viewer for debugging, and warns testing is brittle due to PendingIntent hashes and time fields.
AI-written summary · about
chapters (11)
- 0:00Introduction to Slices
- 3:38Slices for apps
- 4:01Slices in Jetpack
- 6:42Slices with providers and hosts
- 9:19Slices in Google Search
- 13:20Permissions and security
- 14:30Slice Provider step by step
- 17:28Slices in Google Search
- 19:49Tips for Slices
- 21:56Testing Slices pitfalls
- 24:09Slices guidelines and future








