Migrate car snippets#940
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces integration examples for the Android for Cars App Library, covering navigation templates, hardware sensors, microphone access, connection state observation, and UX restrictions. The reviewer identified several critical issues in the new code: a nullable AudioManager in CarMicrophone.kt, an invalid constructor in MyConnectionSession, a potential null pointer exception with context.display in ParkedAuto.kt, an incorrect exclusive end index in InlineCarIcons.kt, and a potential NullPointerException with Car.createCar in ParkedAaos.kt. All of these comments are highly actionable and should be addressed to prevent compilation and runtime failures.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
kkuan2011
left a comment
There was a problem hiding this comment.
Thanks for migrating all these snippets, Jan!! After you get approval from a Cars teammate, can you let us know? Then Yacine/I can approve.
…s.kt Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Migrating snippets for: