Slice It Up: Driving the user engagement outside your app
summary
Slices are app content exposed outside the app via a SliceProvider content provider (onBindSlice returns a Slice quickly, use loading slices while fetching), surfaced in Search and Assistant and discoverable with Firebase App Indexing; compatible back to API 19 (≈95% devices). Implementation uses AndroidX slice builders, Kotlin extensions, compileSdk 28 and Android Studio 3.2, handles permission grants via SliceManager, updates via contentResolver.notifyChange and SliceLiveData, and interactive actions use pending intents and broadcast receivers. Headers, rows, grids and ranges demonstrate audio progress, toggles and deep links like a ride to Brooklyn Expo Center.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:33What are slices
- 3:44Purpose and principles
- 5:11User retention challenges
- 6:59Slices in Google search
- 9:52App actions overview
- 11:15Slice architecture
- 12:39Permissions system
- 15:06Slice templates
- 23:52Setting up slices
- 27:08Dynamic content loading
- 28:34Handling slice actions
- 29:40Testing slices
- 30:47Host app integration
- 34:21Key takeaways
- 35:48Q&A
related talks
25mSlice Your App: Inside Slices and How to build it
28mWant a Slice?
30mAndroid Slices: Searchify your app
23mSlices up your app!
24mAndroid Slices: Build interactive results for Google Search
16mAndroid Slices best practices
40mA Slice of Pie
39mSlices and Actions - Everything You Need to Know to Start Using Them in Your App
