Difference between Intent,Pending Intent,and Sticky Intent
Intent :
1. Intent is message passing component for android.
2. It's uses to activate(start) component(activity,service,broadcast receiver).
3. It's not uses in content provider component.
Pending Intent :
1. Pending Intent is using for broadcast receiver for a fixed time.Fixed time means that system knows that when the receiver would fire.
Sticky Intent :
1. Sticky Intent is using for broadcast receiver for unknown time, means it may occur anytime when the situation occur. For example battery low problem may occur any time ,so this type of situation can be handle with the help of sticky intent.
1. Intent is message passing component for android.
2. It's uses to activate(start) component(activity,service,broadcast receiver).
3. It's not uses in content provider component.
Pending Intent :
1. Pending Intent is using for broadcast receiver for a fixed time.Fixed time means that system knows that when the receiver would fire.
Sticky Intent :
1. Sticky Intent is using for broadcast receiver for unknown time, means it may occur anytime when the situation occur. For example battery low problem may occur any time ,so this type of situation can be handle with the help of sticky intent.
very good
ReplyDeletegreat
ReplyDeleteNice
ReplyDeleteVery nice 👌
ReplyDelete