Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Android Slices - Building Interactive Results for Google Search

Android Developers via YouTube

Overview

Explore the new Android Slices API in this technical session from Google I/O '18. Learn how to build interactive results for Google Search using developer-customized templates that present app content and actions across Android surfaces. Dive into a live coding demonstration of a sample application, covering Slice structure, implementation in the Android Manifest, and creation of Slice Providers. Discover how to use templates, incorporate actions, respond to events, and enhance search predictions with rich app content. Gain insights on acquiring permissions, indexing content, and leveraging Slices to create a consistent user experience across Android and Google platforms.

Syllabus

Intro
Templated
Interactive
Launching in Search
Example Use Cases
The goal? One, reusable API to generalize for how we present remote app content in Android
Slices Structure
Architectural Overview
Define your Slice Provider in Android Manifest
Implement your Slice Provider
Slice with loading content
Build Wi-Fi Slice
Slice Action
Respond to events
Slice Viewer
Templates consists of list and grid rows
These stack to build your template
Temperature row
Camera grid row
Slices in Search Enhance predictions with rich app content
Link Main Activity to Slice URI
Explicit Permission Grant to Search and Play services
General Terms
Create and push Indexable
Mapping content URLS
Acquiring Permissions

Taught by

Android Developers

Reviews

Start your review of Android Slices - Building Interactive Results for Google Search

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.