ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
การแจ้งเตือนสายเรียกเข้า
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Android 7.0 ย้ายฟังก์ชันการทำงานที่เกี่ยวข้องกับการแจ้งเตือนการโทรจากบริการระบบ Telecom ในแพลตฟอร์ม Android ไปยังแอปโทรศัพท์
ก่อนหน้านี้ความรับผิดชอบในการแสดงการแจ้งเตือนที่เกี่ยวข้องกับการโทรจะแบ่งระหว่าง Telecom กับแอปโทรศัพท์เริ่มต้น ซึ่งทำให้ลักษณะการทำงานไม่สอดคล้องกัน ใน Android 7.0 ตัวต่อสายจะรับผิดชอบทั้งหมดในการจัดการการแจ้งเตือนการโทร
ลักษณะการทํางานใน Android 6.x และต่ำกว่า
ใน Android เวอร์ชันก่อนหน้า Telecom และ Dialer จะแบ่งความรับผิดชอบกันตามที่อธิบายไว้ด้านล่าง
ฟังก์ชันการทำงาน |
ดำเนินการโดย Telecom |
ดำเนินการโดย Dialer |
การแจ้งเตือนสายเรียกเข้า |
ใช่ (เสียงเรียกเข้า การสั่น) |
ใช่ (การแสดงการแจ้งเตือน หมายเลขผู้โทร) |
ส่งไปยังข้อความเสียง |
ใช่ |
ไม่ |
เสียงเรียกเข้าที่กำหนดเอง |
ใช่ |
ไม่ |
การแจ้งเตือนสายที่ไม่ได้รับ |
ใช่ |
ไม่ |
ไฟบอกสถานะข้อความที่รอ (โทรฝากข้อความเสียง) |
มี (โทรศัพท์) |
ไม่ |
การแจ้งเตือนข้อความเสียงพร้อมภาพ |
ไม่ |
ใช่ |
ตัวอย่างลักษณะการทำงานที่ไม่สอดคล้องกันซึ่งเกิดจากความรับผิดชอบที่แยกกันนี้ ได้แก่
- เทเลคอมมีหน้าที่เริ่มเสียงเรียกเข้า/เครื่องสั่น แต่โปรแกรมโทรมีหน้าที่แสดงการแจ้งเตือนสายเรียกเข้า หากตัวต่อสายเริ่มต้นช้า โทรศัพท์อาจเริ่มส่งเสียงก่อนการแจ้งเตือนสายเรียกเข้าปรากฏขึ้น 2-3 วินาที
- ผู้ให้บริการโทรคมนาคมมีหน้าที่รับผิดชอบในการแสดงการแจ้งเตือนสายที่ไม่ได้รับ เนื่องจากฟีเจอร์ที่เป็นกรรมสิทธิ์ (เช่น หมายเลขผู้โทรของ Google) ไม่ทำงานกับการแจ้งเตือนเหล่านี้ จึงอาจส่งผลให้การแจ้งเตือนของ Telecom และ UI ของ Dialer (เช่น บันทึกการโทร) ไม่สอดคล้องกัน
ลักษณะการทํางานใน Android 7.0 ขึ้นไป
ตัวเปิดสายของโครงการโอเพนซอร์ส Android (AOSP) จะใช้ฟังก์ชันการทำงานใหม่นี้ โปรดดูรายละเอียดในเอกสารประกอบต่อไปนี้
รูปแบบการแจ้งเตือนสำหรับการโทรใน Android 12 ขึ้นไป
สำหรับอุปกรณ์ที่ใช้ Android 12 ขึ้นไป เราขอแนะนำให้แอปใช้สไตล์การแจ้งเตือน
CallStyle
สำหรับการโทรเข้าและการโทรต่อเนื่องเพื่อให้ผู้ใช้ได้รับประสบการณ์การใช้งานที่สม่ำเสมอสำหรับการโทร
ดูข้อมูลเพิ่มเติมได้ที่
การแจ้งเตือนการโทรแบบใหม่ที่ช่วยจัดอันดับความสำคัญของสายเรียกเข้า
การใช้งาน
ผู้ติดตั้งใช้งานอุปกรณ์อาจต้องอัปเดตคอมโพเนนต์ Telecom/Telephony ที่แสดง API ที่พร้อมให้ใช้โดยเครื่องมือโทรเริ่มต้น
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-06-18 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-06-18 UTC"],[],[],null,["# Call notifications\n\nAndroid 7.0 moves functionality related to call notifications from the\nTelecom system service in the Android platform to the Dialer app.\nPreviously, the responsibility for displaying call-related notifications was\nsplit between Telecom and the default Dialer app, creating inconsistencies in\nbehavior. In Android 7.0, the Dialer assumes all responsibility for handling\ncall notifications.\n\nBehavior in Android 6.x and lower\n---------------------------------\n\nIn earlier Android releases, Telecom and Dialer split responsibilities as\ndescribed below:\n\n| Functionality | Done by Telecom | Done by Dialer |\n|--------------------------------------------|------------------------|---------------------------------------|\n| Incoming call notification | Yes (ringing, vibrate) | Yes (notification display, caller ID) |\n| Send to voicemail | Yes | No |\n| Custom ringtone | Yes | No |\n| Missed call notifications | Yes | No |\n| Message Waiting Indicator (call voicemail) | Yes (telephony) | No |\n| Visual voicemail notifications | No | Yes |\n\nExamples of inconsistent behavior caused by this responsibility split\nincluded:\n\n- Telecom was responsible for starting the ringer/vibrator, but the dialer was responsible for displaying the incoming call notification. If the dialer is slow to startup, this can result in ringing starting several seconds before the incoming call notification is displayed.\n- Telecom was responsible for displaying missed call notifications. As proprietary features (such as Google caller ID) do not work on these notifications, this could result in inconsistencies between Telecom notifications and Dialer UI (such as the call log).\n\nBehavior in Android 7.0 and higher\n----------------------------------\n\nThe Android Open Source Project (AOSP) Dialer implements the new\nfunctionality. For details, refer to the following documentation:\n\n- Missed call notifications \n [Telecom/src/com/android/server/telecom/ui/MissedCallNotifierImpl.java](https://android.googlesource.com/platform/packages/services/Telecomm/+/android16-release/src/com/android/server/telecom/ui/MissedCallNotifierImpl.java) \n [Dialer/android/dialer/calllog/MissedCallNotificationReceiver.java](https://android.googlesource.com/platform/packages/apps/Dialer/+/android16-release/java/com/android/dialer/app/calllog/MissedCallNotificationReceiver.java) \n [Dialer/android/dialer/calllog/MissedCallNotifier.java](https://android.googlesource.com/platform/packages/apps/Dialer/+/android16-release/java/com/android/dialer/app/calllog/MissedCallNotifier.java)\n- Playing ringtones: \n [frameworks/base/telecomm/java/android/telecom/InCallService.java](https://android.googlesource.com/platform/frameworks/base/+/android16-release/telecomm/java/android/telecom/InCallService.java) \n [Telecom/src/com/android/server/telecom/InCallController.java](https://android.googlesource.com/platform/packages/services/Telecomm/+/android16-release/src/com/android/server/telecom/InCallController.java) \n [Dialer/java/com/android/incallui/ringtone/](https://android.googlesource.com/platform/packages/apps/Dialer/+/android16-release/java/com/android/incallui/ringtone/) \n [Dialer/java/com/android/incallui/StatusBarNotifier.java](https://android.googlesource.com/platform/packages/apps/Dialer/+/android16-release/java/com/android/incallui/StatusBarNotifier.java)\n- VVM notifications \n [frameworks/base/telephony/java/android/telephony/TelephonyManager.java](https://android.googlesource.com/platform/frameworks/base/+/android16-release/telephony/java/android/telephony/TelephonyManager.java) \n [Telephony/src/com/android/phone/PhoneInterfaceManager.java](https://android.googlesource.com/platform/packages/services/Telephony/+/android16-release/src/com/android/phone/PhoneInterfaceManager.java) \n [Dialer/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java](https://android.googlesource.com/platform/packages/apps/Dialer/+/nougat-release/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java)\n\nNotification style for calls in Android 12 or higher\n----------------------------------------------------\n\nFor devices running Android 12 or higher, to provide\na consistent user experience for calls, we recommend that apps use the\n[`CallStyle`](https://developer.android.com/reference/android/app/Notification.CallStyle) notification style for incoming and ongoing calls.\nFor more information, see\n[New phone call notifications allowing for ranking importance of incoming\ncalls](https://developer.android.com/about/versions/12/features#new-calls).\n\nImplementation\n--------------\n\nDevice implementers may need to update Telecom/Telephony components that\nexpose APIs available for use by the default Dialer."]]