构建车载游戏
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
“游戏”类别目前处于 Beta 版测试阶段
目前,任何人都可以将游戏发布到 Play 商店的内部测试和封闭式测试轨道。我们日后会允许发布到开放式测试轨道和正式版轨道。
游戏提供了一个独特的机会,让用户在车辆停车时以有趣且互动的方式参与互动。将您的游戏引入汽车,您可以触达新的受众群体,并在休息时提供娱乐内容。
除了本页中的指南外,您还需要遵循游戏兼容的每个平台的平台专用要求:
将应用标记为游戏
如需表明您的应用是游戏,您必须将 android:appCategory="game"
属性添加到清单的 <application>
元素中。
<manifest ...>
...
<application
...
android:appCategory="game">
...
</application>
</manifest>
声明对游戏控制器的支持(可选)
如果您的应用支持控制器输入,请为 android.hardware.gamepad
功能添加以下清单声明,因为原始设备制造商 (OEM) 可以使用这些信息来改进用户体验:
<application ...>
...
<uses-feature android:name="android.hardware.gamepad" android:required="false"/>
...
</application>
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Build games for cars\n\nThe Games category is in beta \nAt this time, anyone can publish games to internal testing and closed testing tracks on the Play Store. Publishing to open testing and production tracks will be permitted at a later date. \n[Nominate yourself to be an early access partner →](https://forms.gle/VsXEdDEBidxw8q8u8) \n\nGames offer a unique opportunity to engage users in a fun and interactive way\nwhile their car is parked. By bringing your game to cars, you can reach a new\naudience and provide entertainment during downtime.\n\nIn addition to the guidance on this page, follow the platform-specific\nrequirements for each platform that your game is compatible with:\n\n- [Add support for Android Auto to your parked app](/training/cars/parked/auto)\n- [Add support for Android Automotive OS to your parked app](/training/cars/parked/automotive-os)\n\n| **Important:** Make sure your game meets the [quality guidelines for\n| games](/docs/quality-guidelines/car-app-quality?category=game), as it is [reviewed against them](/training/cars/distribute#understand-review) when submitted to tracks other than internal testing.\n\nMark your app as a game\n-----------------------\n\nTo indicate that your app is a game, you must add the\n[`android:appCategory=\"game\"`](/guide/topics/manifest/application-element#appCategory) attribute to the\n[`\u003capplication\u003e`](/guide/topics/manifest/application-element) element of your manifest. \n\n \u003cmanifest ...\u003e\n ...\n \u003capplication\n ...\n android:appCategory=\"game\"\u003e\n ...\n \u003c/application\u003e\n \u003c/manifest\u003e\n\nDeclare support for game controllers (optional)\n-----------------------------------------------\n\nIf your app [supports controller input](/develop/ui/views/touch-and-input/game-controllers), include the following\nmanifest declaration for the [`android.hardware.gamepad`](/guide/topics/manifest/uses-feature-element#gamepad-hw-features)\nfeature, as OEMs can use this information to improve the user experience: \n\n \u003capplication ...\u003e\n ...\n \u003cuses-feature android:name=\"android.hardware.gamepad\" android:required=\"false\"/\u003e\n ...\n \u003c/application\u003e\n\n| **Caution:** Be careful not to set the [`android:required`](/guide/topics/manifest/uses-feature-element#required) attribute to `true`, as not all devices have this feature present even if they can pair with a controller."]]