Android Slices: build interactive results for Google Search (Google I/O '18)

Slices is the new, backwards-compatible API introduced as part of Android P. It enables a single and consistent way for apps to present their content and actions across Android and Google surfaces, through developer-customized templates. This technical session will discuss building Slices and cover everything you need to know to have them appear as interactive results suggestions in Google Search on Android. This includes a live coding session with a sample application.

Rate this session by…


  1. Some questions:
    1. About 13:10 Are Slices as flexible as Widgets?
    2. About 14:58 , does this mean we have to provide all types of slices : shortcut, small, large ?
    3. About 16:40 , doesn't it have a recyclerView like mechanism? It can't be that we provide it with a lot of images…
    4. About 17:45 , why is it needed to link the MainActivity to the Slice? I don't see it being written in the sample manifest file. Same goes for permission granting on 18:14

  2. What is happening on the slide at 9:50 ? That code starting with getContext() makes no sense. The part at the end with ",null))" is adding a null argument and two closing parenthesis on to nothing. Unless I'm missing something?

  3. Java written in Kotlin, it pains me to view those code samples XD Guys those slides serve juniors as seniors, I know it's not a kotlin tutorial video but people will be copying this code over and over. Would be nice to make sure it is a nice piece of work.
    Or write in pseudo code..

  4. damn it, i live in china and google search doesn't exist, hence this whole feature will never work. No wonder I see everyone with money in China buy's an Iphone, google just appears to be not coming anytime soon.

Leave a Reply

Your email address will not be published. Required fields are marked *