เฟรมเวิร์กการป้อนข้อความอัตโนมัติ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เฟรมเวิร์กการป้อนข้อความอัตโนมัติพร้อมใช้งานใน Android 8.0 (API ระดับ 26) ขึ้นไป
แอปบางแอป เช่น เครื่องมือจัดการรหัสผ่าน สามารถกรอกข้อมูลในมุมมองของแอปอื่นๆ ด้วย
ข้อมูลที่ผู้ใช้ระบุ แอปที่กรอกข้อมูลในมุมมองของแอปอื่นๆ เรียกว่าบริการป้อนข้อความอัตโนมัติ เฟรมเวิร์กการป้อนข้อความอัตโนมัติจะจัดการการสื่อสารระหว่างแอปกับบริการป้อนข้อความอัตโนมัติ
การกรอกแบบฟอร์มเป็นงานที่ใช้เวลานานและเกิดข้อผิดพลาดได้ง่าย เฟรมเวิร์กการป้อนข้อความอัตโนมัติ
ช่วยปรับปรุงประสบการณ์ของผู้ใช้ด้วยการมอบสิทธิประโยชน์ต่อไปนี้
- ประหยัดเวลาในการกรอกข้อมูลในช่อง การป้อนข้อความอัตโนมัติช่วยให้ผู้ใช้ไม่ต้องพิมพ์ข้อมูลซ้ำ
- ลดข้อผิดพลาดในการป้อนข้อมูลของผู้ใช้ การพิมพ์มีแนวโน้มที่จะเกิดข้อผิดพลาด โดยเฉพาะอย่างยิ่งใน
อุปกรณ์เคลื่อนที่ การลดความจำเป็นในการพิมพ์ข้อมูลจะช่วยลดการพิมพ์ผิด
คอมโพเนนต์
เฟรมเวิร์กการป้อนข้อความอัตโนมัติมีคอมโพเนนต์ระดับสูงต่อไปนี้
- บริการป้อนข้อความอัตโนมัติ: แอปต่างๆ เช่น เครื่องมือจัดการรหัสผ่านที่บันทึกและจัดเก็บ
ข้อมูลผู้ใช้ซึ่งใช้ได้ในมุมมองต่างๆ ในหลายแอป
- ไคลเอ็นต์การป้อนข้อความอัตโนมัติ: แอปที่แสดงมุมมองที่ต้องกรอกหรือ
ที่เก็บข้อมูลของผู้ใช้
- ระบบ Android: ระบบปฏิบัติการที่กำหนดเวิร์กโฟลว์และจัดหา
โครงสร้างพื้นฐานที่ทำให้บริการและไคลเอ็นต์ทำงานร่วมกัน
ดูคำอธิบายโดยละเอียดเกี่ยวกับเวิร์กโฟลว์การป้อนข้อความอัตโนมัติได้ในเอกสารประกอบอ้างอิงของ AutofillService
และ AutofillManager
เส้นนำ
ดูข้อมูลเพิ่มเติมเกี่ยวกับวิธีใช้เฟรมเวิร์กการป้อนข้อความอัตโนมัติได้ในคู่มือต่อไปนี้
- เพิ่มประสิทธิภาพแอปสำหรับการป้อนข้อความอัตโนมัติ
- ตรวจสอบว่าแอปได้รับการกำหนดค่าให้ใช้กับเฟรมเวิร์กการป้อนข้อความอัตโนมัติ
- สร้างบริการป้อนข้อความอัตโนมัติ
- ใช้บริการป้อนข้อความอัตโนมัติของคุณเอง
- ผสานรวมการป้อนข้อความอัตโนมัติกับแป้นพิมพ์
- เปิดใช้แป้นพิมพ์และ IME อื่นๆ เพื่อใช้การป้อนข้อความอัตโนมัติ และเปิดใช้ผู้ให้บริการป้อนข้อความอัตโนมัติ
เพื่อรองรับการผสานรวม IME
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-27 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-27 UTC"],[],[],null,["The autofill framework is available in Android 8.0 (API level 26) and higher.\n\nSome apps, such as password managers, can fill out the views in other apps with\ndata provided by the user. Apps that fill out other apps' views are called\n*autofill services*. The autofill framework manages the communication between an\napp and an autofill service.\n\nFilling out forms is a time-consuming and error-prone task. The autofill\nframework improves the user experience by providing the following benefits:\n\n- **Saving time spent filling in fields.** Autofill saves users from re-typing information.\n- **Minimizing user input errors.** Typing is prone to errors, especially on mobile devices. Minimizing the need to type information minimizes typos.\n\n| **Note:** Autofill works well with [Credential Manager](/identity/sign-in/credential-manager) and [passkeys](https://developers.google.com/identity/passkeys) to provide increased security and a smoother workflow.\n\nComponents\n\nThe autofill framework contains the following high-level components:\n\n- **Autofill services:** apps such as password managers that save and store user information that can be used in views across multiple apps.\n- **Autofill clients:** apps that provide views that need to be filled out or that hold the user's data.\n- **Android system:** the OS that defines the workflow and provides the infrastructure that makes services and clients work together.\n\nFor a detailed explanation of the autofill workflow, see the\n[`AutofillService`](/reference/android/service/autofill/AutofillService) and\n[`AutofillManager`](/reference/android/view/autofill/AutofillManager) reference\ndocumentation.\n\nGuides\n\nTo learn more about how to use the autofill framework, see the following guides:\n\n[Optimize your app for autofill](/guide/topics/text/autofill-optimize)\n: Check that your app is configured for use with the autofill framework.\n\n[Build autofill services](/guide/topics/text/autofill-services)\n: Implement your own autofill service.\n\n[Integrate autofill with keyboards](/guide/topics/text/ime-autofill)\n: Enable keyboards and other IMEs to use autofill, and enable your autofill\n provider to support IME integration."]]