Which method is used to send an ordered broadcast, allowing you to control the order in which Broadcast Receivers receive the broadcast?
4 phương ánCó giải thích
Các phương án trả lời
Chọn một phương ánLời giảiChọn phương án để mở
Để gửi một tin nhắn có thứ tự (ordered broadcast), cho phép bạn kiểm soát thứ tự trong đó các Broadcast Receiver nhận được tin nhắn, bạn cần sử dụng phương thức sendOrderedBroadcast(Intent, String). Phương thức này cho phép bạn chỉ định một chuỗi (String) để xác định thứ tự nhận tin nhắn. Điều này khác với phương thức sendBroadcast(Intent), nơi mà các Broadcast Receiver nhận tin nhắn không theo thứ tự. Ngoài ra, sendStickyBroadcast(Intent) và sendBroadcastAsUser(Intent, UserHandle) không đáp ứng yêu cầu này.
Cùng chương 4
Which of the following correctly describe benefits that an intent provides to apps in Android?Có lời giảiCâu hỏiWhich of the following are information in an Android intent?Có lời giảiCâu hỏiWhich importance level of notification will make a sound when it appears?Có lời giảiCâu hỏiCả 43 câu của chủ đề43 câu
Đi tiếp từ đây