How to integrate Android widgets with Google Assistant
summary
Shows how to surface an Android widget inside Google Assistant using App Actions and the Widgets Extension Library, mapping the GET_EXERCISE_OBSERVATION BII with inline inventory for three types: running, walking, cycling. Adds a background service in AndroidManifest, reads intent extras, queries the DB for a specific exercise type, builds RemoteViews, and attaches custom TTS. Tests: Assistant speaks the last running activity and returns a fallback “couldn't find the last activity for 'climbing'”, both working.
AI-written summary · about
chapters (13)
- 0:00Start
- 0:48App Actions
- 2:54Fallback Intent
- 4:17Download the Starter Code
- 6:42Test the Existing App Actions
- 10:08Exercise Types
- 12:33Configure the Android App
- 13:25Add a Service for Processing the Widget Request
- 15:09Initialization Code
- 17:12Modifications to the Widget Creation Flow
- 18:47Adding some Text to Speech or Tts to Your Widget
- 20:30Providing Tts Output
- 21:25Update the App Actions Preview
related talks
44mIntegrating your Android apps with the Google Assistant
15mDeveloping for Assistant across devices
35mExtend an Android app to Google Assistant with App Actions
15mDeveloping for Assistant across devices
27mGoogle Assistant for Android developers
27mAndroid & Assistant: a match made in heaven
24mDemystifying the Google Assistant for Android developers
44mExtend your Android app to the Google Assistant
