[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-26。"],[],[],null,["# App shortcuts\n\nThe Play Games services may automatically add [app shortcuts](https://developer.android.com/develop/ui/views/launch/shortcuts), for\nexample to allow users to quickly choose the Play Games Services profile to use.\nThe app shortcuts could be added or removed based on the number of the accounts\non the device and the game usage.\n\nAvailable shortcuts\n-------------------\n\n**Profile switcher** : shortcut for players to switch between different Play\nGames Profiles. See [How to switch Play Games profiles](https://support.google.com/googleplay/answer/14754238), for\ncorresponding Help Center article.\n\nManage the Play Games services populated app shortcuts\n------------------------------------------------------\n\nIn case your game actively uses the app shortcuts, you could limit the number of\napp shortcuts populated by the Play Games services. For that add a\n[meta-data](https://developer.android.com/guide/topics/manifest/meta-data-element)\nelement to any `\"android.intent.category.LAUNCHER\"` activity declaration,\nsetting the following:\n\n- `android:name` to `\"com.google.android.gms.games.APP_SHORTCUTS_MAX_NUMBER\"`\n- `android:value` to the maximum number of the app shortcuts slots that can be used by the Play Games services.\n\n### Example\n\nIn this example, we show how to limit the maximum number of the app shortcuts\nslots that the Play Games services can use to **two** . For our example, we\ninitially would have an\n[app manifest](https://developer.android.com/guide/topics/manifest/manifest-intro)\nthat looks like the following: \n\n \u003cmanifest ... \u003e\n \u003capplication ... \u003e\n \u003cactivity android:name=\".ExampleActivity\" \u003e\n \u003cintent-filter\u003e\n \u003caction android:name=\"android.intent.action.MAIN\" /\u003e\n \u003ccategory android:name=\"android.intent.category.LAUNCHER\" /\u003e\n \u003c/intent-filter\u003e\n \u003c/activity \u003e\n ...\n \u003c/application \u003e\n ...\n \u003c/manifest \u003e\n\nAnd to apply the limits the app manifest should be updated to the following: \n\n \u003cmanifest ... \u003e\n \u003capplication ... \u003e\n \u003cactivity android:name=\".ExampleActivity\" \u003e\n \u003cintent-filter\u003e\n \u003caction android:name=\"android.intent.action.MAIN\" /\u003e\n \u003ccategory android:name=\"android.intent.category.LAUNCHER\" /\u003e\n \u003c/intent-filter\u003e\n \u003cmeta-data\n android:name=\"com.google.android.gms.games.APP_SHORTCUTS_MAX_NUMBER\"\n android:value=\"2\" /\u003e\n \u003c/activity \u003e\n ...\n \u003c/application \u003e\n ...\n \u003c/manifest \u003e\n\nThat's it. Now the maximum number of the app shortcuts slots that the Play Games\nservices can use is limited to **two**."]]