ภาพรวมของบริการ Google Play
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
บริการ Google Play ขับเคลื่อน SDK จำนวนมากใน Android เพื่อสร้าง แอปของคุณ ปรับปรุงความเป็นส่วนตัวและความปลอดภัย ดึงดูดผู้ใช้ และขยาย ธุรกิจของคุณ SDK เหล่านี้ต้องการเพียงไลบรารีไคลเอ็นต์ขนาดเล็กเพื่อรวมไว้ในแอปของคุณ ดังที่แสดงในรูปที่ 1 ในขณะรันไทม์ ไลบรารีของไคลเอ็นต์จะสื่อสารกับการติดตั้งใช้งานแบบเต็มที่ทำงานในแอปพลิเคชันบริการ Google Play หลัก
บริการ Google Play จะช่วยให้คุณทำสิ่งต่อไปนี้ได้ด้วยการติดตั้งใช้งานฝั่งไคลเอ็นต์ที่แชร์
- ช่วยเพิ่มประสิทธิภาพทรัพยากรในอุปกรณ์ เช่น พื้นที่เก็บข้อมูลและหน่วยความจำ เพื่อปรับปรุงคุณภาพของแอปและประสบการณ์โดยรวมของผู้ใช้
- ได้รับการอัปเดตอัตโนมัติโดยไม่ขึ้นอยู่กับการอัปเดตระบบปฏิบัติการ, OEM หรือแอป เพื่อให้ผู้ใช้ได้รับ การปรับปรุงและการแก้ไขข้อบกพร่องได้รวดเร็วยิ่งขึ้น
- มอบความเข้ากันได้แบบย้อนหลังกับ Android 6.0 (API ระดับ 23) และใช้งานได้ในอุปกรณ์หลากหลายรูปแบบ ช่วยให้คุณเข้าถึงผู้ใช้ได้มากขึ้นโดยใช้ความพยายามน้อยลง
รูปที่ 1 บริการ Google Play ได้รับการอัปเดตเป็นประจำซึ่งมีการปรับปรุงและการแก้ไขข้อบกพร่อง
วิธีการทำงานของบริการ Google Play
SDK
SDK ของบริการ Google Play แต่ละรายการมีไลบรารีของไคลเอ็นต์แบบเบาที่มี API ซึ่งโต้ตอบกับบริการที่ทำงานในแอปพลิเคชันบริการ Google Play นอกจากนี้ ไลบรารียังมีฟังก์ชันช่วยในการจัดการปัญหาที่เกิดขึ้นขณะรันไทม์อย่างราบรื่น เช่น เมื่อไม่มีบริการ ปิดใช้ หรือล้าสมัย เมื่อ เปิดใช้การลดขนาดโค้ด เครื่องมือเพิ่มประสิทธิภาพ R8 จะลดผลกระทบของ SDK ต่อขนาดแพ็กเกจเพิ่มเติมโดยการนำโค้ดที่ไม่ได้ใช้ออก
หากต้องการเข้าถึงฟีเจอร์หรือผลิตภัณฑ์ใหม่ของบริการ Google Play ให้อัปเกรด SDK เมื่อมีการเผยแพร่เวอร์ชันใหม่ไปยังที่เก็บ Google Maven
บริการ
บริการ Google Play มีชุดบริการหลักในเบื้องหลังบนอุปกรณ์ที่ ทำงานในอุปกรณ์ Android ทั้งหมดที่ Google รับรอง
การอัปเดตบริการ Google Play โดยอัตโนมัติจะดำเนินการโดยไม่ขึ้นอยู่กับผู้ให้บริการ ระบบปฏิบัติการ หรือการอัปเดตอิมเมจระบบของ OEM โดยทั่วไปแล้ว อุปกรณ์ที่ใช้ Android 6.0 ขึ้นไปจะได้รับการอัปเดตโดยอัตโนมัติ โดยมีเงื่อนไขว่าอุปกรณ์ดังกล่าวต้องติดตั้งบริการ Google Play และมีพื้นที่เก็บข้อมูลเพียงพอ ซึ่งหมายความว่าผู้ใช้จะได้รับการปรับปรุงและการแก้ไขข้อบกพร่องได้เร็วขึ้น และคุณจะใช้ประโยชน์จาก API ล่าสุดได้ในขณะที่เข้าถึงอุปกรณ์ส่วนใหญ่ในระบบนิเวศของ Android ระบบไม่รองรับอุปกรณ์ที่ใช้ Android เวอร์ชันเก่ากว่า 6.0 หรืออุปกรณ์ที่ไม่ได้ติดตั้งบริการ Google Play
ขั้นตอนถัดไป: ตั้งค่าแอป
หากต้องการเริ่มใช้ API ของบริการ Google Play ในแอป โปรดอ่านคู่มือ การตั้งค่านี้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-17 UTC
[[["เข้าใจง่าย","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"]],["อัปเดตล่าสุด 2025-08-17 UTC"],[[["\u003cp\u003eGoogle Play services optimizes app performance and user experience by providing shared, client-side implementations of SDKs, minimizing resource usage.\u003c/p\u003e\n"],["\u003cp\u003eAutomatic updates to Google Play services ensure users receive the latest improvements and bug fixes quickly, independent of OS or device updates.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Play services offers broad compatibility, supporting Android 6.0 (API level 23) and above, various form factors, enabling wider user reach with less development effort.\u003c/p\u003e\n"],["\u003cp\u003eSDKs powered by Google Play services utilize lightweight client libraries, reducing app size and ensuring efficient interactions with Google services.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Play services runs essential Google services in the background on certified Android devices, delivering automatic updates for enhanced functionality and security.\u003c/p\u003e\n"]]],["Google Play services provides lightweight SDK client libraries for Android apps, which interact with shared services on the device. These services optimize device resources, receive automatic updates independent of OS or app updates, and offer backward compatibility to Android 6.0. Developers can update SDKs to access new features through the Google Maven repository. Automatic updates are delivered to devices with Google Play services installed and running Android 6.0 or later. R8 optimizer can reduce the footprint of each SDK.\n"],null,["Google Play services powers a broad set of SDKs on Android for building\nyour app, enhancing privacy and security, engaging users, and growing your\nbusiness. These SDKs only require a lightweight client library to be\nincluded in your app, as shown in figure 1. At runtime, the client library\ncommunicates with a full implementation running in the main Google\nPlay services application.\n\nBy providing shared, client-side implementations, Google Play services:\n\n- Helps to optimize on-device resources, such as storage and memory, to improve [app quality](https://developer.android.com/quality) and your users' overall experience.\n- Receives automatic updates---independent of OS, OEM, or app updates---so your users receive improvements and bug fixes more quickly.\n- Provides backward compatibility to Android 6.0 (API level 23) and works across various form factors, enabling you to reach more users with less effort.\n\n**Figure 1.** Google Play services receives regular updates that contain\nimprovements and bug fixes.\n\nHow Google Play services works\n\nSDKs\n\nEach Google Play services SDK includes a lightweight client library with APIs\nthat interact with a service that runs in the Google Play services application.\nThese libraries also provide helpers to gracefully handle runtime issues, such\nas when a service is missing, disabled, or out-of-date. When you\nenable code shrinking, the\n[R8 optimizer](https://developer.android.com/studio/build/shrink-code)\nfurther reduces the SDK's impact on your package size by removing unused code.\n\nTo access new Google Play services features or products, upgrade the SDK when a\nnew version is [released](/android/guides/releases) to the [Google Maven\nrepository](https://maven.google.com/web/index.html#com.google.android.gms).\n\nServices\n\nGoogle Play services contains a core set of on-device background services that\nrun on all Google-certified Android devices.\n\nAutomatic updates to Google Play services are delivered independent of carrier,\nOS, or OEM system image updates. In general, devices running Android 6.0 or\nhigher receive updates automatically, provided that these devices have Google\nPlay services installed and sufficient storage available. This means that users\nreceive improvements and bug fixes more quickly, and you can take advantage of\nthe latest APIs while reaching most devices in the Android ecosystem. Devices\nolder than Android 6.0, or devices without Google Play services installed,\naren't supported.\n\nNext steps: set up your app\n\nTo begin using Google Play services APIs in your app, read this [setup\nguide](/android/guides/setup)."]]