Android Engineer's Blog
Android Interview question
Java interview points
Monday, 14 July 2014
Types of broadcast :Local,Normal,Ordered and Sticky
:- use sendBroadcast()
:- asynchronous broadcast
:- any receiver receives broadcast not any particular order
:- use sendOrderedBroadcast()
:- synchronous broadcast
:- receiver receives broadcast in priority base
:- we can also simply abort broadcast in this type
:- use only when broadcast is used only inside application
:- normal broadcast intent is not available any more after is was send and processed by the system.
:- use sendStickyBroadcast(Intent)
:- the corresponding intent is sticky, meaning the intent you are sending stays around after the broadcast is complete.
:- because of this others can quickly retrieve that data through the return value of registerReceiver(BroadcastReceiver, IntentFilter).
:- apart from this same as sendBroadcast(Intent).
Share to Twitter
Share to Facebook
Share to Pinterest
Post a Comment
Post Comments (Atom)