What is the Android equivalent of the iOS post-notification and delegation feature?

advertisements

I find the Post notification and delegate function are very useful in iOS. Once I finish a task I can notify another piece of code to do something. I am sending out notices for others to do the work.

Post Notification is when you sending notice right away, whereas delegate sometime down the line it will send a notice.

In Android I know there's event Listener, but that's only passive listening. What about me actively sending notices? Does Android have that equivalent?


Handler which can be fired right away or with postDelay() you can fire them later