What is a Stic...
What is a Stic...
A Sticky Broadcast is a special type of broadcast in Android where the sent Intent object remains in a cache even after the broadcast is complete. The system may re-broadcast sticky Intents to later registrations of receivers[1][2].
Some key points about Sticky Broadcasts:
sendStickyBroadcast()
which performs a sendBroadcast(Intent)
known as sticky[1]registerReceiver(BroadcastReceiver, IntentFilter)
[1]ACTION_BATTERY_CHANGED
to get battery change events without registering for all future state changes[1]However, sticky broadcasts have some security issues[2]:
senior
Gợi ý câu hỏi phỏng vấn
Chưa có bình luận nào