Android Event Handling basics – Part 1

 

In this Tutorial, we see What is Event Handling in Android Studio? The event is nothing but an Action. Event occurs when a user interacts with the mobile application. In Android, Events are in many different forms like keystrokes, touch inputs, and many others. The Android framework maintains all events in a Queue which is FIFO – First In First Out.
What is event listener in android? Event Listener is an interface which contains a call back method and this method will be called by the Android framework when the View to which the listener has been registered is triggered by user interaction with the item in the User Interface. Event listener has some callback methods like 1)onClick( ) 2)onLongClick ( ) 3) onFocusChange ( ) 4) onKey () 5) onTouch


Leave a Reply

Your email address will not be published. Required fields are marked *