What is the difference between sendStickyBroadcast and sendBroadcast in Android?
sendbroadcast() - normal broadcast, but we can set priority as well.
sendstickybroadcast() - intent passed with this will be stick for future users who are registering through code (dynamic receivers).
The broadcast that will stick with android, and will be re-delivered or re-broadcasted to the future requests from any broadcast receivers
When somebody sends a sticky broadcast using sendstickyBroadcast(intent); then that broadcast will be available for the future users who are using dynamic receivers.
But Now you should not use sendStickyBroadcast() method it is deprecated
From Android Documentation:
This method was deprecated in API level 21. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that something has changed, with another mechanism for apps to retrieve the current value whenever desired
I hope this helps.