How listeners work
android, java
Solution
The listener you registered gets added to a list of listeners, and when the operating system receives an event (click in this case), it calls the appropriate methods on all the listeners in the list.
Problem
Can someone please tell me how the listener interface works, when you set a onclicklistener, what really happens in the background?