Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Layanan game Play dapat otomatis menambahkan pintasan aplikasi, misalnya
untuk memungkinkan pengguna memilih profil Layanan game Play yang akan digunakan dengan cepat.
Pintasan aplikasi dapat ditambahkan atau dihapus berdasarkan jumlah akun
di perangkat dan penggunaan game.
Pintasan yang tersedia
Pengubah profil: pintasan bagi pemain untuk beralih di antara Profil
Play Game yang berbeda. Lihat Cara mengubah profil Play Game, untuk
artikel Pusat Bantuan yang sesuai.
Mengelola pintasan aplikasi yang diisi oleh layanan game Play
Jika game Anda secara aktif menggunakan pintasan aplikasi, Anda dapat membatasi jumlah
pintasan aplikasi yang diisi oleh layanan Play Game. Untuk itu, tambahkan elemen
meta-data
ke deklarasi aktivitas "android.intent.category.LAUNCHER",
yang menetapkan hal berikut:
android:name hingga "com.google.android.gms.games.APP_SHORTCUTS_MAX_NUMBER"
android:value ke jumlah maksimum slot pintasan aplikasi yang dapat
digunakan oleh layanan Play Game.
Contoh
Dalam contoh ini, kami menunjukkan cara membatasi jumlah maksimum slot pintasan
aplikasi yang dapat digunakan layanan game Play menjadi dua. Untuk contoh ini, kita
awalnya akan memiliki
manifes aplikasi
yang terlihat seperti berikut:
Selesai. Sekarang, jumlah maksimum slot pintasan aplikasi yang dapat digunakan layanan
Play Game dibatasi hingga dua.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-26 UTC."],[],[],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**."]]