Search code examples
javaandroidsignal-handling

How to handle signals/events in Java


Can any tell me how signals are handled in Java? I have a situation where I need to signal an event/signal to a thread from application main ().


Solution

  • On android you can use the Handler class to send messages across threads. Here is the Handler class description and a code sample