Android Slices: Build interactive results for Google Search
summary
Android Slices is a templated, interactive API (part of Android P and bundled with Jetpack) that serves structured slice data from a SliceProvider over content URIs, supports dynamic updates via ContentResolver.notifyChange, and claims backwards-compatible to KitKat reaching ~95% of devices. The session demos a working Wi‑Fi slice with a toggle (broadcast PendingIntent -> WiFiManager), shows the Slice Viewer testing tool, and explains Search integration via Firebase App Indexing, intent filters, and permission slices.
AI-written summary · about
chapters (26)
- 0:00Intro
- 1:37Templated
- 2:02Interactive
- 3:04Launching in Search
- 3:41Example Use Cases
- 4:48The goal? One, reusable API to generalize for how we present remote app content in Android
- 5:23Slices Structure
- 6:22Architectural Overview
- 7:49Define your Slice Provider in Android Manifest
- 8:04Implement your Slice Provider
- 8:46Slice with loading content
- 10:28Build Wi-Fi Slice
- 10:45Slice Action
- 11:24Respond to events
- 12:13Slice Viewer
- 13:20Templates consists of list and grid rows
- 13:45These stack to build your template
- 15:44Temperature row
- 16:10Camera grid row
- 17:05Slices in Search Enhance predictions with rich app content
- 17:42Link Main Activity to Slice URI
- 17:58Explicit Permission Grant to Search and Play services
- 18:18General Terms
- 19:02Create and push Indexable
- 19:33Mapping content URLS
- 21:17Acquiring Permissions








