~/talk

Android Slices: Build interactive results for Google Search

Talkat Google I/O 2018 · 2018-05-08..05-10· [android, web-platform]
links:none on file
links:none on file
links:none on file
slides:none on file

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

  1. 0:00Intro
  2. 1:37Templated
  3. 2:02Interactive
  4. 3:04Launching in Search
  5. 3:41Example Use Cases
  6. 4:48The goal? One, reusable API to generalize for how we present remote app content in Android
  7. 5:23Slices Structure
  8. 6:22Architectural Overview
  9. 7:49Define your Slice Provider in Android Manifest
  10. 8:04Implement your Slice Provider
  11. 8:46Slice with loading content
  12. 10:28Build Wi-Fi Slice
  13. 10:45Slice Action
  14. 11:24Respond to events
  15. 12:13Slice Viewer
  16. 13:20Templates consists of list and grid rows
  17. 13:45These stack to build your template
  18. 15:44Temperature row
  19. 16:10Camera grid row
  20. 17:05Slices in Search Enhance predictions with rich app content
  21. 17:42Link Main Activity to Slice URI
  22. 17:58Explicit Permission Grant to Search and Play services
  23. 18:18General Terms
  24. 19:02Create and push Indexable
  25. 19:33Mapping content URLS
  26. 21:17Acquiring Permissions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.