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.

092705e84e0e07c8f6ed2afd1e0d181f?s=128

Marc Poppleton

April 23, 2019
Tweet

Transcript

  1. SLICES UP YOUR APP!

  2. None
  3. None
  4. • Icon button • Toggle button • Sliders and progress

    bars • Grids • Rows • Headers • “See more”… source : https://developer.android.com/guide/slice
  5. None
  6. None
  7. None
  8. None
  9. None
  10. } Header }gridRow } Cell

  11. None
  12. None
  13. None
  14. None
  15. None
  16. None
  17. 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!”
  18. None
  19. None
  20. None
  21. None
  22. None
  23. None
  24. https://github.com/googlesamples/android-SliceViewer

  25. None
  26. None
  27. None
  28. None
  29. API 19 - Kit Kat API 28 - Pie

  30. None