Android Slices: Searchify your app
summary
Explains that Slices (Android P + Jetpack) expose app features via a ContentProvider/URI model implemented as a SliceProvider class, built UI with the Kotlin DSL, and delivers interactivity through PendingIntents, toggles and BroadcastReceivers. Demo builds a Twitter slice that fetches a random tweet every 5 seconds (executor → worker → repository → ContentResolver.notify) and rebinds the slice; it renders in the slice viewer demo and updates reliably. Notes limits: rendering is uncontrolled by the app and vendor fragmentation can break appearance.
AI-written summary · about
chapters (6)
- 0:00Introduction to slices
- 2:34Implementing slices
- 7:41Data updates and layout
- 12:29Interactivity with actions
- 15:33Practical demo walk-through
- 22:53Future and strategy
related talks
24mAndroid Slices: Build interactive results for Google Search
28mWant a Slice?
36mSlice It Up: Driving the user engagement outside your app
25mSlice Your App: Inside Slices and How to build it
23mSlices up your app!
40mA Slice of Pie
16mAndroid Slices best practices
39mSlices and Actions - Everything You Need to Know to Start Using Them in Your App
