Android Questions and Answers

Is there anyway to determine if an Intent passed into a BroadcastReceiver’s on Receive is the result of a sticky Broadcast Intent, or if it was just sent?

Example for sticky broadcast

When you call registerReceiver( ) for that action — even with a null BroadcastReceiver — you get the Intent that was last broadcast for that action. Hence, you can use this to find the state of the battery without necessarily registering for all future state changes in the battery.