~/talk

Slice Your App: Inside Slices and How to build it

Talkat DroidKaigi 2019 · 2019-02-07..02-08· [android]
links:none on file
slides:none on file

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

  1. 0:00Introduction to Slices
  2. 3:38Slices for apps
  3. 4:01Slices in Jetpack
  4. 6:42Slices with providers and hosts
  5. 9:19Slices in Google Search
  6. 13:20Permissions and security
  7. 14:30Slice Provider step by step
  8. 17:28Slices in Google Search
  9. 19:49Tips for Slices
  10. 21:56Testing Slices pitfalls
  11. 24:09Slices guidelines and future
~/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.