ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
การโต้ตอบใน Android
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หน้านี้อธิบายวิธีที่ Android ประมวลผลอินพุตต่างๆ ที่ได้รับจากแป้นพิมพ์ เซ็นเซอร์ และอื่นๆ
การโต้ตอบการสัมผัส
ระบบย่อยของการสัมผัสของ Android หมายถึงฟีเจอร์ฮาร์ดแวร์และซอฟต์แวร์ที่มีส่วนในการสร้างสิ่งเร้าผ่านสัมผัส ส่วนนี้จะให้คําแนะนําและวิธีการปฏิบัติตามข้อกําหนดเกี่ยวกับวิธีใช้ Android Haptics API ที่ดีที่สุด
ระบบย่อยอินพุตของ Android ประกอบด้วยไปป์ไลน์เหตุการณ์ที่ทำงานผ่านระบบหลายเลเยอร์ ที่ชั้นล่างสุด อุปกรณ์อินพุตที่จับต้องได้จะสร้างสัญญาณที่อธิบายการเปลี่ยนแปลงสถานะ เช่น การกดแป้นพิมพ์และจุดสัมผัส
Neural Networks API
Android Neural Networks API (NNAPI) ทำงานการดำเนินการที่ต้องใช้การประมวลผลอย่างหนักสำหรับแมชชีนเลิร์นนิง เอกสารนี้ให้ภาพรวมเกี่ยวกับวิธีใช้ไดรเวอร์ Neural Networks API สําหรับ Android 9
อุปกรณ์ต่อพ่วงและอุปกรณ์เสริม
การใช้ชุดโปรโตคอลมาตรฐานช่วยให้คุณใช้อุปกรณ์ต่อพ่วงที่น่าสนใจและอุปกรณ์เสริมอื่นๆ ที่ขยายความสามารถของ Android ในอุปกรณ์ที่ทำงานด้วยระบบ Android ได้หลากหลาย
เซ็นเซอร์
เซ็นเซอร์ Android ให้สิทธิ์แอปเข้าถึงเซ็นเซอร์ที่จับสัญญาณของอุปกรณ์เคลื่อนที่ โดยเป็นอุปกรณ์เสมือนจริงที่ให้ข้อมูลซึ่งกำหนดโดย sensors.h
ซึ่งเป็นเลเยอร์การแยกแยะฮาร์ดแวร์ (HAL) ของเซ็นเซอร์
สภาพแวดล้อมรันไทม์ของฮับบริบท
สภาพแวดล้อมรันไทม์ของฮับบริบท (CHRE) เป็นแพลตฟอร์มทั่วไปสําหรับการเรียกใช้แอประดับระบบในโปรเซสเซอร์พลังงานต่ำ โดยมี API ที่ใช้งานง่ายเป็นมาตรฐานและเหมาะสําหรับการฝัง CHRE ช่วยให้ OEM ของอุปกรณ์สามารถประมวลผลจากตัวประมวลผลแอปพลิเคชันได้ง่ายขึ้น เพื่อประหยัดแบตเตอรี่และปรับปรุงประสบการณ์ของผู้ใช้ในด้านต่างๆ รวมถึงเปิดใช้ฟีเจอร์ที่ทำงานอยู่ตลอดเวลาและรับรู้ตามบริบท
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-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-07-27 UTC"],[],[],null,["# Interaction in Android\n\nThis page explains how Android processes the various inputs it receives from\nthe keyboard, sensors, and more.\n\nHaptics\n-------\n\nThe Android haptics subsystem refers to hardware and software features that\ncontribute to the creation of stimuli through the sense of touch. This section\nprovides guidance and compliance instructions on the best use of Android haptics\nAPIs.\n\nInput\n-----\n\nThe Android input subsystem nominally consists of an event pipeline that\ntraverses multiple layers of the system. At the lowest layer, the physical input\ndevice produces signals that describe state changes such as key presses and\ntouch contact points.\n\nNeural Networks API\n-------------------\n\nThe Android Neural Networks API (NNAPI) runs computationally intensive\noperations for machine learning. This document provides an overview on how to\nimplement a Neural Networks API driver for Android 9.\n\nPeripherals and accessories\n---------------------------\n\nUsing a suite of standard protocols, you can implement compelling peripherals\nand other accessories that extend Android capabilities in a wide range of\nAndroid-powered devices.\n\nSensors\n-------\n\nAndroid sensors give apps access to a mobile device's underlying\nphysical sensors. They are data-providing virtual devices defined by\n`sensors.h`, the sensor Hardware Abstraction Layer (HAL).\n\nContext Hub Runtime Environment\n-------------------------------\n\nContext Hub Runtime Environment (CHRE) provides a common platform for running\nsystem-level apps on a low-power processor, with a simple, standardized,\nembedded-friendly API. CHRE makes it easy for device OEMs to offload processing\nfrom the applications processor, to save battery and improve various areas of\nthe user experience, and enable a class of always-on, contextually aware\nfeatures."]]