Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Slices up your app!

Slices up your app!

We Android developers love desert. We love pie. We can't eat up a whole pie, but we can eat as many slices as we want. Android has a new API called Slices which is part of the AndroidX libraries. I'll show you how you can use it to serve slices of your app to any other apps like Google Search or Assistant but also any other app and in any Android desert you love.

Marc Poppleton

April 23, 2019
Tweet

More Decks by Marc Poppleton

Other Decks in Programming

Transcript

  1. • Icon button • Toggle button • Sliders and progress

    bars • Grids • Rows • Headers • “See more”… source : https://developer.android.com/guide/slice
  2. The app displaying Slices Your Slice Provider onBindSlice onSlicePinned background

    thread onSliceUnpinned “Ok, here the default slice!” notifyChange “Hey, I have a fresh slice for you, come get it!”