Sunday 4 March 2018

What is event handling in android ?

Event Handling in Android

Event Handling in Android

  • In computer programming, event-driven programming is a programming paradigm in which the flow of the program is determined by events such as user actions (mouse clicks, key presses), sensor outputs, or messages from other programs/threads. Event-driven programming is the dominant paradigm used in graphical user interfaces and other applications (e.g. JavaScript web applications) that are centered on performing certain actions in response to user input.
  • An event occurs whenever an event listener detects an event trigger and responds by running a method called an event handler. 
  • In an event-driven application, there is generally a main loop that listens for events, and then triggers a callback function when one of those events is detected.

2 comments: