Skip to content

Migrate car snippets#940

Open
jankleinert wants to merge 9 commits into
mainfrom
migrate-car-snippets
Open

Migrate car snippets#940
jankleinert wants to merge 9 commits into
mainfrom
migrate-car-snippets

Conversation

@jankleinert

Copy link
Copy Markdown
Contributor

Migrating snippets for:

  • /training/cars/apps/library/car-hardware-api.md
  • /training/cars/apps/library/car-microphone.md
  • /training/cars/apps/library/carappservice-session.md
  • /training/cars/apps/library/connection-api.md
  • /training/cars/apps/library/constraints-api.md
  • /training/cars/apps/library/inline-car-icons.md
  • /training/cars/apps/library/screen-navigation.md
  • /training/cars/apps/library/text-string-variants.md
  • /training/cars/apps/navigation.md
  • /training/cars/communication/templated-messaging.md
  • /training/cars/parked/auto.md
  • /training/cars/parked/automotive-os.md
  • /training/cars/parked/video.md

@snippet-bot

snippet-bot Bot commented Jun 5, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 28 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread cars/src/main/java/com/example/cars/apps/library/CarMicrophone.kt Outdated
Comment thread cars/src/main/java/com/example/cars/apps/library/ConnectionApi.kt Outdated
Comment thread cars/src/main/java/com/example/cars/parked/ParkedAuto.kt Outdated
Comment thread cars/src/main/java/com/example/cars/apps/library/InlineCarIcons.kt
Comment thread cars/src/main/java/com/example/cars/parked/ParkedAaos.kt Outdated
jankleinert and others added 3 commits June 5, 2026 16:06
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 kkuan2011 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread cars/src/main/java/com/example/cars/apps/library/CarHardware.kt
jankleinert and others added 4 commits June 8, 2026 12:18
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants